File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -24,7 +24,7 @@ export const createCustomTypesFile = (
2424 const statements : StatementedNodeStructure [ 'statements' ] = [
2525 {
2626 kind : StructureKind . ImportDeclaration ,
27- namedImports : [ 'SubsetOf ' ] ,
27+ namedImports : [ 'CreateCustomTypes ' ] ,
2828 moduleSpecifier : '../../generated/utils' ,
2929 isTypeOnly : true ,
3030 } ,
@@ -38,7 +38,7 @@ export const createCustomTypesFile = (
3838 {
3939 kind : StructureKind . TypeAlias ,
4040 name : `${ pascal_table_name } CustomTypes` ,
41- type : `SubsetOf <Selectable${ pascal_table_name } , {}>` ,
41+ type : `CreateCustomTypes <Selectable${ pascal_table_name } , {}>` ,
4242 isExported : true ,
4343 } ,
4444 ( writer ) => writer . blankLine ( ) ,
Original file line number Diff line number Diff line change @@ -39,7 +39,7 @@ type NullableKeys<T> = {
3939/**
4040 * Allows creating a type that is a subset of another type.
4141 */
42- export type SubsetOf <
42+ export type CreateCustomTypes <
4343 Super,
4444 Sub extends {
4545 // The types of keys present in sub must be assignable to the types of the same keys in super
You can’t perform that action at this time.
0 commit comments