Skip to content

Commit 43280b8

Browse files
danielsharveytheoomoregbee
authored andcommitted
fix: Correct and improve OpenAPI3 Typescript interface def for schemas
1 parent 7904f78 commit 43280b8

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

types/sails.d.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,7 @@ declare namespace Sails {
120120
// basic semantics
121121
type: AttributeType;
122122
required?: boolean;
123-
defaultsTo?: string;
123+
defaultsTo?: any;
124124
allowNull?: boolean;
125125
autoUpdatedAt?: boolean;
126126
autoCreatedAt?: boolean;
@@ -181,7 +181,7 @@ declare namespace Sails {
181181
// basic semantics
182182
type: AttributeType;
183183
required?: boolean;
184-
defaultsTo?: string;
184+
defaultsTo?: any;
185185
allowNull?: boolean;
186186

187187
// documentation related

0 commit comments

Comments
 (0)