Skip to content

Commit

Permalink
chore(snippet): add auth only
Browse files Browse the repository at this point in the history
  • Loading branch information
jhaemin committed Jun 18, 2020
1 parent 79e879f commit b5b0302
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 @@ -44,6 +44,28 @@
">"
]
},
"One API type auth only": {
"scope": "typescript",
"prefix": "onetypeauthonly",
"body": [
"import type {",
" AuthOnly,",
" OneApiActionTemplate,",
" OneApiActionTemplatePayload,",
" OneApiError,",
"} from '@/api/one/types'",
"",
"export type Action = OneApiActionTemplate<",
" AuthOnly,",
" OneApiActionTemplatePayload<",
" OneApiError,",
" {",
" $2",
" }",
" >",
">"
]
},
"One API type without request data": {
"scope": "typescript",
"prefix": "onetypenodata",
Expand Down

0 comments on commit b5b0302

Please sign in to comment.