mirror of
https://github.com/wassname/DefinitelyTyped.git
synced 2026-09-09 11:13:57 +08:00
Merge pull request #7950 from theoinglis/sequelize
Add constructor for Virtual DataType
This commit is contained in:
@@ -581,6 +581,9 @@ Sequelize.GEOMETRY( 'POINT' );
|
||||
Sequelize.GEOMETRY( 'LINESTRING' );
|
||||
Sequelize.GEOMETRY( 'POLYGON' );
|
||||
Sequelize.GEOMETRY( 'POINT', 4326 );
|
||||
Sequelize.VIRTUAL;
|
||||
new Sequelize.VIRTUAL( Sequelize.STRING );
|
||||
new Sequelize.VIRTUAL( Sequelize.DATE , ['property1', 'property2']);
|
||||
|
||||
//
|
||||
// Deferrable
|
||||
|
||||
Vendored
+10
-1
@@ -1778,7 +1778,16 @@ declare module "sequelize" {
|
||||
|
||||
interface DataTypeUUIDv4 extends DataTypeAbstract { }
|
||||
|
||||
interface DataTypeVirtual extends DataTypeAbstract { }
|
||||
interface DataTypeVirtual extends DataTypeAbstract {
|
||||
|
||||
/**
|
||||
* Virtual field
|
||||
*
|
||||
* Accepts subtype any of the DataTypes
|
||||
* Array of required attributes that are available on the model
|
||||
*/
|
||||
new( subtype : DataTypeAbstract, requireAttributes? : Array<string> ) : DataTypeVirtual;
|
||||
}
|
||||
|
||||
interface DataTypeEnum extends DataTypeAbstract {
|
||||
|
||||
|
||||
Reference in New Issue
Block a user