Skip to content

Commit 53a2826

Browse files
Robin BuschmannRobin Buschmann
authored andcommitted
main entry added
1 parent c9fb1e0 commit 53a2826

30 files changed

+1004
-1
lines changed

dist/annotations/AutoIncrement.d.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
import 'reflect-metadata';
2+
/**
3+
* Sets auto increment true for annotated field
4+
*/
5+
export declare function AutoIncrement(target: any, propertyName: string): void;

dist/annotations/BelongsTo.d.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
import { Model } from "../models/Model";
2+
export declare function BelongsTo(relatedClassGetter: () => typeof Model, foreignKey?: string): (target: any, propertyName: string) => void;

dist/annotations/BelongsToMany.d.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
import { Model } from "../models/Model";
2+
export declare function BelongsToMany(relatedClassGetter: () => typeof Model, throughClass: () => typeof Model): any;
3+
export declare function BelongsToMany(relatedClassGetter: () => typeof Model, through: string, foreignKey?: string): any;

dist/annotations/Boolean.d.ts

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
import 'reflect-metadata';
2+
/**
3+
* Sets type option for annotated property to specified value.
4+
* This annotation will not work together with Column(options) annotation,
5+
* but has to be used with Column (Please notice the difference with and
6+
* without options)
7+
*/
8+
export declare const Boolean: (target: any, propertyName: string) => void;

dist/annotations/Column.d.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
/// <reference types="sequelize" />
2+
import 'reflect-metadata';
3+
import { DefineAttributeColumnOptions } from "sequelize";
4+
export declare function Column(options: DefineAttributeColumnOptions): any;
5+
export declare function Column(target: any, propertyName: string): any;

dist/annotations/Default.d.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
import 'reflect-metadata';
2+
/**
3+
* Sets the specified default value for the annotated field
4+
*/
5+
export declare function Default(value: any): (target: any, propertyName: string) => void;

dist/annotations/DefaultScope.d.ts

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
/// <reference types="sequelize" />
2+
import 'reflect-metadata';
3+
import { FindOptions } from "sequelize";
4+
/**
5+
* Sets default scope for annotated class
6+
*/
7+
export declare function DefaultScope(scope: FindOptions | Function): (target: any) => void;

dist/annotations/ForeignKey.d.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
import { Model } from "../models/Model";
2+
export declare function ForeignKey(relatedClassGetter: () => typeof Model): (target: any, propertyName: string) => void;

dist/annotations/HasMany.d.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
import { Model } from "../models/Model";
2+
export declare function HasMany(relatedClassGetter: () => typeof Model, foreignKey?: string): (target: any, propertyName: string) => void;

dist/annotations/HasOne.d.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
import { Model } from "../models/Model";
2+
export declare function HasOne(relatedClassGetter: () => typeof Model, foreignKey?: string): (target: any, propertyName: string) => void;

0 commit comments

Comments
 (0)