-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(in-app-onboarding): do not force skipLibCheck on customers TS con…
…figuration (#680)
- Loading branch information
1 parent
b6ce451
commit c374117
Showing
18 changed files
with
130 additions
and
245 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
import JSONAPISerializer from 'json-api-serializer'; | ||
|
||
export interface JsonApiRelationshipOptionsExt extends JSONAPISerializer.RelationshipOptions { | ||
deserialize?: (data: Record<string, unknown>) => unknown; | ||
} | ||
|
||
export interface JsonApiOptionsExt extends JSONAPISerializer.Options { | ||
relationships: Record<string, JsonApiRelationshipOptionsExt>; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
// Override the types from sequelize to add properties from private fields and methods | ||
// that we use in the datasource-sequelize package, but that are not exported by sequelize. | ||
|
||
import { | ||
AbstractDataType, | ||
AbstractDataTypeConstructor, | ||
ArrayDataType, | ||
BelongsToMany, | ||
Model, | ||
ModelAttributeColumnOptions, | ||
} from 'sequelize'; | ||
|
||
export interface BelongsToManyExt extends BelongsToMany { | ||
through: { model: typeof Model }; | ||
} | ||
|
||
export interface ModelAttributeColumnOptionsExt extends ModelAttributeColumnOptions { | ||
_autoGenerated?: boolean; | ||
} | ||
|
||
export interface ArrayDataTypeExt<T extends AbstractDataTypeConstructor | AbstractDataType> | ||
extends ArrayDataType<T> { | ||
type: AbstractDataType; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
56 changes: 56 additions & 0 deletions
56
packages/datasource-sql/src/introspection/type-overrides.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,56 @@ | ||
// Override the types from sequelize to add properties from private fields and methods | ||
// that we use in the datasource-sequelize package, but that are not exported by sequelize. | ||
|
||
import { | ||
AbstractDataType, | ||
AbstractDataTypeConstructor, | ||
ColumnDescription, | ||
Logging, | ||
QueryInterface, | ||
QueryInterfaceOptions, | ||
QueryOptions, | ||
TableName, | ||
} from 'sequelize/types'; | ||
|
||
export interface SequelizeIndex { | ||
name: string; | ||
primary: boolean; | ||
unique: boolean; | ||
indkey: string; | ||
definition: string; | ||
fields: { attribute: string }[]; | ||
} | ||
|
||
export interface SequelizeColumn extends ColumnDescription { | ||
special?: string[]; | ||
} | ||
|
||
export type SequelizeColumnType = AbstractDataType | AbstractDataTypeConstructor; | ||
|
||
export type SequelizeReference = { | ||
constraintName: string; | ||
constraintSchema: string; | ||
constraintCatalog: string; | ||
tableName: string; | ||
tableSchema: string; | ||
tableCatalog: string; | ||
columnName: string; | ||
referencedTableSchema: string; | ||
referencedTableCatalog: string; | ||
referencedTableName: string; | ||
referencedColumnName: string; | ||
}; | ||
|
||
export interface QueryInterfaceExt extends QueryInterface { | ||
showIndex(tableName: string | object, options?: QueryOptions): Promise<SequelizeIndex[]>; | ||
|
||
getForeignKeyReferencesForTable( | ||
tableName: TableName, | ||
options?: QueryInterfaceOptions, | ||
): Promise<SequelizeReference[]>; | ||
|
||
describeTable( | ||
tableName: TableName, | ||
options?: string | ({ schema?: string; schemaDelimiter?: string } & Logging), | ||
): Promise<Record<string, SequelizeColumn>>; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
import { BaseClient, ClientOptions, RegisterOther, TypeOfGenericClient } from 'openid-client'; | ||
|
||
export interface ClientExt extends TypeOfGenericClient<BaseClient> { | ||
register: (metadata: object, other?: RegisterOther & ClientOptions) => Promise<BaseClient>; | ||
} |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.