Skip to content

Commit 3142c62

Browse files
chore: remove BodyType type
1 parent 2f04e29 commit 3142c62

File tree

2 files changed

+1
-3
lines changed

2 files changed

+1
-3
lines changed

lua/rest-nvim/parser/init.lua

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,6 @@ local jar = require("rest-nvim.cookie_jar")
1717

1818
---@alias Source integer|string Buffer or string which the `node` is extracted
1919

20-
---@alias BodyType "json"|"xml"|"external"|"form"|"graphql"
21-
2220
local NAMED_REQUEST_QUERY = vim.treesitter.query.parse("http", [[
2321
(section
2422
(request_separator

lua/rest-nvim/request.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ local nio = require("nio")
1111
local jar = require("rest-nvim.cookie_jar")
1212

1313
---@class rest.Request.Body
14-
---@field __TYPE BodyType
14+
---@field __TYPE "json"|"xml"|"external"|"form"|"graphql"
1515
---@field data any
1616

1717
---@class rest.Request

0 commit comments

Comments
 (0)