Skip to content

Commit

Permalink
Add types
Browse files Browse the repository at this point in the history
  • Loading branch information
jcbrand committed Nov 3, 2023
1 parent 2195389 commit 81b33ec
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/types/model.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -59,10 +59,10 @@ export class Model extends Model_base {
/**
* Create a new model with the specified attributes. A client id (`cid`)
* is automatically generated and assigned for you.
* @param {Attributes} attributes
* @param {Attributes} [attributes]
* @param {ModelOptions} [options]
*/
constructor(attributes: Attributes, options?: ModelOptions, ...args: any[]);
constructor(attributes?: Attributes, options?: ModelOptions, ...args: any[]);
cid: any;
attributes: {};
validationError: any;
Expand Down
2 changes: 1 addition & 1 deletion src/types/model.d.ts.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 81b33ec

Please sign in to comment.