Skip to content

Commit

Permalink
fix: type name conflicts (#30)
Browse files Browse the repository at this point in the history
Including updated snapshot of highway test (#30)
Co-authored-by: Lars Johansson <lars.johansson@ftrack.com>
  • Loading branch information
ffMathy authored Dec 22, 2023
1 parent 1d0566b commit b085c6f
Show file tree
Hide file tree
Showing 13 changed files with 1,539 additions and 135 deletions.
22 changes: 11 additions & 11 deletions source/__snapshots__/default-custom-attributes.snap
Original file line number Diff line number Diff line change
Expand Up @@ -86,33 +86,33 @@ export function getAttributeConfigurations() {
] as const;
}

export type CustomAttributeConfiguration = ReturnType<
export type RuntimeCustomAttributeConfiguration = ReturnType<
typeof getAttributeConfigurations
>[number];
export type CustomAttributeConfigurationName =
CustomAttributeConfiguration["name"];
export type CustomAttributeConfigurationLabel =
CustomAttributeConfiguration["label"];
export type RuntimeCustomAttributeConfigurationName =
RuntimeCustomAttributeConfiguration["name"];
export type RuntimeCustomAttributeConfigurationLabel =
RuntimeCustomAttributeConfiguration["label"];

export function getTypes() {
return [] as const;
}

export type Type = ReturnType<typeof getTypes>[number];
export type TypeName = Type["name"];
export type RuntimeType = ReturnType<typeof getTypes>[number];
export type RuntimeTypeName = RuntimeType["name"];

export function getObjectTypes() {
return [] as const;
}

export type ObjectType = ReturnType<typeof getObjectTypes>[number];
export type ObjectTypeName = ObjectType["name"];
export type RuntimeObjectType = ReturnType<typeof getObjectTypes>[number];
export type RuntimeObjectTypeName = RuntimeObjectType["name"];

export function getProjectSchemas() {
return [] as const;
}

export type ProjectSchema = ReturnType<typeof getProjectSchemas>[number];
export type ProjectName = ProjectSchema["name"];
export type RuntimeProjectSchema = ReturnType<typeof getProjectSchemas>[number];
export type RuntimeProjectSchemaName = RuntimeProjectSchema["name"];

// Errors:
22 changes: 11 additions & 11 deletions source/__snapshots__/default-ftrack-schema.snap
Original file line number Diff line number Diff line change
Expand Up @@ -1426,33 +1426,33 @@ export function getAttributeConfigurations() {
return [] as const;
}

export type CustomAttributeConfiguration = ReturnType<
export type RuntimeCustomAttributeConfiguration = ReturnType<
typeof getAttributeConfigurations
>[number];
export type CustomAttributeConfigurationName =
CustomAttributeConfiguration["name"];
export type CustomAttributeConfigurationLabel =
CustomAttributeConfiguration["label"];
export type RuntimeCustomAttributeConfigurationName =
RuntimeCustomAttributeConfiguration["name"];
export type RuntimeCustomAttributeConfigurationLabel =
RuntimeCustomAttributeConfiguration["label"];

export function getTypes() {
return [] as const;
}

export type Type = ReturnType<typeof getTypes>[number];
export type TypeName = Type["name"];
export type RuntimeType = ReturnType<typeof getTypes>[number];
export type RuntimeTypeName = RuntimeType["name"];

export function getObjectTypes() {
return [] as const;
}

export type ObjectType = ReturnType<typeof getObjectTypes>[number];
export type ObjectTypeName = ObjectType["name"];
export type RuntimeObjectType = ReturnType<typeof getObjectTypes>[number];
export type RuntimeObjectTypeName = RuntimeObjectType["name"];

export function getProjectSchemas() {
return [] as const;
}

export type ProjectSchema = ReturnType<typeof getProjectSchemas>[number];
export type ProjectName = ProjectSchema["name"];
export type RuntimeProjectSchema = ReturnType<typeof getProjectSchemas>[number];
export type RuntimeProjectSchemaName = RuntimeProjectSchema["name"];

// Errors:
Loading

0 comments on commit b085c6f

Please sign in to comment.