express-generator-typescript 2.0.6 → 2.0.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -19,7 +19,7 @@ type TParamFull = TParam | TValidatorFn;
|
|
|
19
19
|
* used as the default type. Instead of a type you can also pass a validator function
|
|
20
20
|
* which must return 'true' or 'false'. Return false if invalid.
|
|
21
21
|
*
|
|
22
|
-
* Example argument: [id, 'number], id is the incoming variable, 'number' is the type.
|
|
22
|
+
* Example argument: [id, 'number'], id is the incoming variable, 'number' is the type.
|
|
23
23
|
*
|
|
24
24
|
* Example 1: validate(email, [user, 'object'], [isAdmin, 'boolean'])
|
|
25
25
|
* Example 2: validate(password) // will check that password is a string
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "express-generator-typescript",
|
|
3
|
-
"version": "2.0.
|
|
3
|
+
"version": "2.0.7",
|
|
4
4
|
"description": "Generate new Express applications similar to express-generate which but sets it up to use TypeScript instead",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"express-generator-typescript": "node bin/cli.js",
|