Skip to content

Commit

Permalink
feat(RemapApiHref)
Browse files Browse the repository at this point in the history
  • Loading branch information
wmakeev committed Jul 24, 2021
1 parent c3be3ca commit af2b1be
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "moysklad-api-model",
"version": "0.3.4",
"version": "0.3.5",
"description": "Объектная модель API МойСклад для TypeScript проектов",
"main": "build/src/index.js",
"types": "build/src/index.d.ts",
Expand Down
4 changes: 4 additions & 0 deletions src/model/api/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -81,3 +81,7 @@ export type DomineEntityMetaType =
| 'task'
| 'uom'
| 'variant'

export type RemapApiHref<
T extends string
> = `https://online.moysklad.ru/api/remap/${string}/${T}`

0 comments on commit af2b1be

Please sign in to comment.