Skip to content

Commit

Permalink
feat: add auth optional snippet
Browse files Browse the repository at this point in the history
  • Loading branch information
jhaemin committed Jun 18, 2020
1 parent b5b0302 commit 17a9e06
Showing 1 changed file with 22 additions and 0 deletions.
22 changes: 22 additions & 0 deletions .vscode/one-api.code-snippets
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,28 @@
">"
]
},
"One API type auth optional": {
"scope": "typescript",
"prefix": "onetypeauthoptional",
"body": [
"import type {",
" AuthOptional,",
" OneApiActionTemplate,",
" OneApiActionTemplatePayload,",
" OneApiError,",
"} from '@/api/one/types'",
"",
"export type Action = OneApiActionTemplate<",
" AuthOptional,",
" OneApiActionTemplatePayload<",
" OneApiError,",
" {",
" $2",
" }",
" >",
">"
]
},
"One API type without request data": {
"scope": "typescript",
"prefix": "onetypenodata",
Expand Down

0 comments on commit 17a9e06

Please sign in to comment.