Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

deps: update third party type definitions #670

Merged
merged 4 commits into from
Feb 3, 2017
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions .flowconfig
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
.*/dist/.*
.*/scripts/.*
.*/examples/.*
.*/node_modules/bcryptjs/*
.*/test/test-app/.*

[include]
./src/
Expand All @@ -12,8 +12,8 @@
[libs]
node_modules/rollup-plugin-lux/decl/
node_modules/rollup-plugin-lux/flow-typed/
decl/
flow-typed/
decl/

[options]
emoji=true
Expand Down
35 changes: 35 additions & 0 deletions decl/knex.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
// @flow
declare class Knex$SchemaBuilder extends Knex$QueryBuilder {
hasTable(name: string): this;
dropTable(name: string): this;
createTable(name: string, fn: (table: Object) => void): this;
}

declare class Lux$Knex extends Knex$Knex {
schema: Knex$SchemaBuilder;
transaction((trx: Knex$Transaction) => any): Knex$QueryBuilder;
}

declare module 'knex' {
declare type Error = {
name: string,
length: number,
severity: string,
code: string,
detail: string,
hint?: string,
position?: any,
intenralPosition?: any,
internalQuery?: any,
where?: any,
schema: string,
table: string,
column?: any,
dataType?: any,
constraint?: string,
file: string,
line: string,
routine: string,
};
declare var exports: typeof Lux$Knex;
}
39 changes: 37 additions & 2 deletions flow-typed/npm/babel-core_vx.x.x.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// flow-typed signature: d692dba6c579c5b69dea0df77cde52c0
// flow-typed version: <<STUB>>/babel-core_v6.21.0/flow_v0.38.0
// flow-typed signature: acad8b2e966b83f1ace8324a2e7731a6
// flow-typed version: <<STUB>>/babel-core_v6.22.1/flow_v0.38.0

/**
* This is an autogenerated libdef stub for:
Expand Down Expand Up @@ -30,6 +30,14 @@ declare module 'babel-core/lib/api/node' {
declare module.exports: any;
}

declare module 'babel-core/lib/helpers/get-possible-plugin-names' {
declare module.exports: any;
}

declare module 'babel-core/lib/helpers/get-possible-preset-names' {
declare module.exports: any;
}

declare module 'babel-core/lib/helpers/merge' {
declare module.exports: any;
}
Expand All @@ -38,6 +46,18 @@ declare module 'babel-core/lib/helpers/normalize-ast' {
declare module.exports: any;
}

declare module 'babel-core/lib/helpers/resolve-from-possible-names' {
declare module.exports: any;
}

declare module 'babel-core/lib/helpers/resolve-plugin' {
declare module.exports: any;
}

declare module 'babel-core/lib/helpers/resolve-preset' {
declare module.exports: any;
}

declare module 'babel-core/lib/helpers/resolve' {
declare module.exports: any;
}
Expand Down Expand Up @@ -127,12 +147,27 @@ declare module 'babel-core/lib/api/browser.js' {
declare module 'babel-core/lib/api/node.js' {
declare module.exports: $Exports<'babel-core/lib/api/node'>;
}
declare module 'babel-core/lib/helpers/get-possible-plugin-names.js' {
declare module.exports: $Exports<'babel-core/lib/helpers/get-possible-plugin-names'>;
}
declare module 'babel-core/lib/helpers/get-possible-preset-names.js' {
declare module.exports: $Exports<'babel-core/lib/helpers/get-possible-preset-names'>;
}
declare module 'babel-core/lib/helpers/merge.js' {
declare module.exports: $Exports<'babel-core/lib/helpers/merge'>;
}
declare module 'babel-core/lib/helpers/normalize-ast.js' {
declare module.exports: $Exports<'babel-core/lib/helpers/normalize-ast'>;
}
declare module 'babel-core/lib/helpers/resolve-from-possible-names.js' {
declare module.exports: $Exports<'babel-core/lib/helpers/resolve-from-possible-names'>;
}
declare module 'babel-core/lib/helpers/resolve-plugin.js' {
declare module.exports: $Exports<'babel-core/lib/helpers/resolve-plugin'>;
}
declare module 'babel-core/lib/helpers/resolve-preset.js' {
declare module.exports: $Exports<'babel-core/lib/helpers/resolve-preset'>;
}
declare module 'babel-core/lib/helpers/resolve.js' {
declare module.exports: $Exports<'babel-core/lib/helpers/resolve'>;
}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// flow-typed signature: 1d90db81b4452cd3f99ec09d578fc314
// flow-typed version: <<STUB>>/babel-plugin-transform-es2015-modules-commonjs_v6.18.0/flow_v0.38.0
// flow-typed signature: d00677a0a14d1bbf838e7451315d9d18
// flow-typed version: <<STUB>>/babel-plugin-transform-es2015-modules-commonjs_v6.22.0/flow_v0.38.0

/**
* This is an autogenerated libdef stub for:
Expand Down
18 changes: 16 additions & 2 deletions flow-typed/npm/eslint_vx.x.x.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// flow-typed signature: 39c719d3a8ef136e1ba183a7d663f2b4
// flow-typed version: <<STUB>>/eslint_v3.13.1/flow_v0.38.0
// flow-typed signature: b0d9578b6d8fe75865bb72c319133933
// flow-typed version: <<STUB>>/eslint_v3.14.1/flow_v0.38.0

/**
* This is an autogenerated libdef stub for:
Expand Down Expand Up @@ -682,6 +682,10 @@ declare module 'eslint/lib/rules/no-mixed-spaces-and-tabs' {
declare module.exports: any;
}

declare module 'eslint/lib/rules/no-multi-assign' {
declare module.exports: any;
}

declare module 'eslint/lib/rules/no-multi-spaces' {
declare module.exports: any;
}
Expand Down Expand Up @@ -1026,6 +1030,10 @@ declare module 'eslint/lib/rules/prefer-numeric-literals' {
declare module.exports: any;
}

declare module 'eslint/lib/rules/prefer-promise-reject-errors' {
declare module.exports: any;
}

declare module 'eslint/lib/rules/prefer-reflect' {
declare module.exports: any;
}
Expand Down Expand Up @@ -1738,6 +1746,9 @@ declare module 'eslint/lib/rules/no-mixed-requires.js' {
declare module 'eslint/lib/rules/no-mixed-spaces-and-tabs.js' {
declare module.exports: $Exports<'eslint/lib/rules/no-mixed-spaces-and-tabs'>;
}
declare module 'eslint/lib/rules/no-multi-assign.js' {
declare module.exports: $Exports<'eslint/lib/rules/no-multi-assign'>;
}
declare module 'eslint/lib/rules/no-multi-spaces.js' {
declare module.exports: $Exports<'eslint/lib/rules/no-multi-spaces'>;
}
Expand Down Expand Up @@ -1996,6 +2007,9 @@ declare module 'eslint/lib/rules/prefer-destructuring.js' {
declare module 'eslint/lib/rules/prefer-numeric-literals.js' {
declare module.exports: $Exports<'eslint/lib/rules/prefer-numeric-literals'>;
}
declare module 'eslint/lib/rules/prefer-promise-reject-errors.js' {
declare module.exports: $Exports<'eslint/lib/rules/prefer-promise-reject-errors'>;
}
declare module 'eslint/lib/rules/prefer-reflect.js' {
declare module.exports: $Exports<'eslint/lib/rules/prefer-reflect'>;
}
Expand Down
4 changes: 2 additions & 2 deletions flow-typed/npm/fb-watchman_vx.x.x.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// flow-typed signature: 1872b556b019ed1e1c4cb5b36d663dfc
// flow-typed version: <<STUB>>/fb-watchman_v1.9.0/flow_v0.38.0
// flow-typed signature: abb2b41291aa60ee4aed7e70f3590fe6
// flow-typed version: <<STUB>>/fb-watchman_v2.0.0/flow_v0.38.0

/**
* This is an autogenerated libdef stub for:
Expand Down
4 changes: 2 additions & 2 deletions flow-typed/npm/inflection_vx.x.x.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// flow-typed signature: 4b00291a429acb5009c0e635c612b7da
// flow-typed version: <<STUB>>/inflection_v1.10.0/flow_v0.38.0
// flow-typed signature: 081d47155b3d94dd79d94cd89240bbe3
// flow-typed version: <<STUB>>/inflection_v1.12.0/flow_v0.38.0

/**
* This is an autogenerated libdef stub for:
Expand Down
164 changes: 164 additions & 0 deletions flow-typed/npm/knex_v0.12.x.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,164 @@
// flow-typed signature: 70c5066abfa785637d22983bcc46f142
// flow-typed version: a3fdaed924/knex_v0.12.x/flow_>=v0.33.x

declare class Knex$Transaction mixins Knex$QueryBuilder, events$EventEmitter, Promise {
commit(connection?: any, value?: any): Promise<any>;
rollback(): Promise<any>;
savepoint(connection?: any): Promise<any>;
}

declare type Knex$QueryBuilderFn = (qb: Knex$QueryBuilder) => Knex$QueryBuilder;

declare class Knex$QueryBuilder mixins Promise {
select(key?: string[]): this;
select(...key: string[]): this;
timeout(ms: number, options?: { cancel: bool }): this;
column(key: string[]): this;
column(...key: string[]): this;
with(alias: string, w: string|Knex$QueryBuilderFn): this;
withSchema(schema: string): this;
returning(column: string): this;
returning(...columns: string[]): this;
returning(columns: string[]): this;
as(name: string): this;
transacting(trx: ?Knex$Transaction): this;
where(builder: Knex$QueryBuilderFn): this;
where(column: string, value: any): this;
where(column: string, operator: string, value: any): this;
whereNot(builder: Knex$QueryBuilderFn): this;
whereNot(column: string, value: any): this;
whereNot(column: string, operator: string, value: any): this;
whereIn(column: string, values: any[]): this;
whereNotIn(column: string, values: any[]): this;
whereNull(column: string): this;
whereNotNull(column: string): this;
whereExists(column: string): this;
whereNotExists(column: string): this;
whereBetween(column: string, range: number[]): this;
whereNotBetween(column: string, range: number[]): this;
whereRaw(raw: any): this;
orWhere(builder: Knex$QueryBuilderFn): this;
orWhere(column: string, value: any): this;
orWhere(column: string, operator: string, value: any): this;
orWhereNot(builder: Knex$QueryBuilderFn): this;
orWhereNot(column: string, value: any): this;
orWhereNot(column: string, operator: string, value: any): this;
orWhereIn(column: string, values: any[]): this;
orWhereNotIn(column: string, values: any[]): this;
orWhereNull(column: string): this;
orWhereNotNull(column: string): this;
orWhereExists(column: string): this;
orWhereNotExists(column: string): this;
orWhereBetween(column: string, range: number[]): this;
orWhereNotBetween(column: string, range: number[]): this;
orWhereRaw(raw: any): this;
innerJoin(table: string, c1: string, operator: string, c2: string): this;
innerJoin(table: string, c1: string, c2: string): this;
innerJoin(builder: Knex$QueryBuilder, c1?: string, c2?: string): this;
leftJoin(table: string, c1: string, operator: string, c2: string): this;
leftJoin(table: string, c1: string, c2: string): this;
leftJoin(builder: Knex$QueryBuilder): this;
leftOuterJoin(table: string, c1: string, operator: string, c2: string): this;
leftOuterJoin(table: string, c1: string, c2: string): this;
rightJoin(table: string, c1: string, operator: string, c2: string): this;
rightJoin(table: string, c1: string, c2: string): this;
rightOuterJoin(table: string, c1: string, operator: string, c2: string): this;
rightOuterJoin(table: string, c1: string, c2: string): this;
outerJoin(table: string, c1: string, operator: string, c2: string): this;
outerJoin(table: string, c1: string, c2: string): this;
fullOuterJoin(table: string, c1: string, operator: string, c2: string): this;
fullOuterJoin(table: string, c1: string, c2: string): this;
crossJoin(column: string, c1: string, c2: string): this;
crossJoin(column: string, c1: string, operator: string, c2: string): this;
joinRaw(sql: string, bindings?: mixed[]): this;
distinct(): this;
groupBy(column: string): this;
groupByRaw(): this;
orderBy(column: string, direction?: 'desc' | 'asc'): this;
orderByRaw(): this;
offset(offset: number): this;
limit(limit: number): this;
having(column: string, operator: string, value: mixed): this;
union(): this;
unionAll(): this;
count(column?: string): this;
countDistinct(column?: string): this;
min(column?: string): this;
max(column?: string): this;
sum(column?: string): this;
sumDistinct(column?: string): this;
avg(column?: string): this;
avgDistinct(column?: string): this;
pluck(column: string): this;
first(): this;
from(table: string): this;
from(builder: Knex$QueryBuilderFn|Knex$Knex|Knex$QueryBuilder): this;

insert(): this;
del(): this;
delete(): this;
update(): this;
returning(columns: string[]): this;
}

declare class Knex$Knex mixins Knex$QueryBuilder, Promise {
static (config: Knex$Config): Knex$Knex;
static QueryBuilder: typeof Knex$QueryBuilder;
$call: (tableName: string) => Knex$QueryBuilder;
raw(sqlString: string): any;
client: any;
destroy(): Promise<void>;

}

declare type Knex$PostgresConfig = {
client?: 'pg',
connection?: {
host?: string,
user?: string,
password?: string,
database?: string,
charset?: string,
},
searchPath?: string,
}
declare type Knex$MysqlConfig = {
client?: 'mysql',
connection?: {
host?: string,
user?: string,
password?: string,
database?: string,
},
}
declare type Knex$SqliteConfig = {
client?: 'sqlite3',
connection?: {
filename?: string,
}
}
declare type Knex$Config = Knex$PostgresConfig | Knex$MysqlConfig | Knex$SqliteConfig;

declare module 'knex' {
declare type Error = {
name: string,
length: number,
severity: string,
code: string,
detail: string,
hint?: string,
position?: any,
intenralPosition?: any,
internalQuery?: any,
where?: any,
schema: string,
table: string,
column?: any,
dataType?: any,
constraint?: string,
file: string,
line: string,
routine: string,
}
declare var exports: typeof Knex$Knex;
}
Loading