move supmiku39 to sup39
This commit is contained in:
parent
10c1a3655d
commit
681f9efd76
2 changed files with 8 additions and 8 deletions
|
@ -12,7 +12,7 @@ This tool assumes you use **koa router** for server and **axios** for client.
|
|||
## How to use this tool?
|
||||
### 0. Install it
|
||||
```
|
||||
yarn add -D @supmiku39/api-ts-gen
|
||||
yarn add -D @sup39/api-ts-gen
|
||||
```
|
||||
Also, install the dependencies that generated code will use.
|
||||
```
|
||||
|
@ -154,7 +154,7 @@ where the `path`, `query`, `header`, `cookie` is a object whose key is the `name
|
|||
|
||||
```
|
||||
import api from '#api/ClientAPI';
|
||||
// import {FullDate} from '@supmiku39/api-ts-gen/utils';
|
||||
// import {FullDate} from '@sup39/api-ts-gen/utils';
|
||||
// import {SchemaA} from '#api/schemas';
|
||||
|
||||
// ...
|
||||
|
@ -178,9 +178,9 @@ api.$baseURL = '/same/as/the/prefix/in/server';
|
|||
If the format is `string` `date`, you should use `FullDate` instead of `Date`.
|
||||
`FullDate` is a wrapper of `Date`, which implements `.toString()`, `.toJSON()` and `.valueOf()` to make it more convenience to convert it to String or JSON.
|
||||
|
||||
Import `FullDate` class from `@supmiku39/api-ts-gen/utils`.
|
||||
Import `FullDate` class from `@sup39/api-ts-gen/utils`.
|
||||
```
|
||||
import {FullDate} from '@supmiku39/api-ts-gen/utils';
|
||||
import {FullDate} from '@sup39/api-ts-gen/utils';
|
||||
|
||||
// initialization
|
||||
new FullDate(new Date()); // from a Date instance
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
{
|
||||
"name": "@supmiku39/api-ts-gen",
|
||||
"version": "2.0.2",
|
||||
"name": "@sup39/api-ts-gen",
|
||||
"version": "2.0.2-a",
|
||||
"description": "OpenAPI code generator for TypeScript",
|
||||
"main": "dist/index.js",
|
||||
"types": "dist/index.d.ts",
|
||||
|
@ -9,10 +9,10 @@
|
|||
"build": "tsc",
|
||||
"lint": "eslint lib bin --ext ts --ext js"
|
||||
},
|
||||
"author": "supmiku39",
|
||||
"author": "sup39",
|
||||
"license": "MIT",
|
||||
"repository": {
|
||||
"url": "https://github.com/supmiku39/api-ts-gen",
|
||||
"url": "https://github.com/sup39/api-ts-gen",
|
||||
"type": "git"
|
||||
},
|
||||
"keywords": [
|
||||
|
|
Reference in a new issue