diff --git a/src/lib/index.ts b/src/lib/index.ts index 5313a15..776a6a4 100644 --- a/src/lib/index.ts +++ b/src/lib/index.ts @@ -71,4 +71,4 @@ export type { ButtonProperties, LinkProperties } from "./types/types-comp-props" -*/ \ No newline at end of file +*/ diff --git a/src/lib/types/types-extra.ts b/src/lib/types/types-extra.ts index e701702..a94b175 100644 --- a/src/lib/types/types-extra.ts +++ b/src/lib/types/types-extra.ts @@ -55,12 +55,11 @@ export type OnlyWritableNonFunctionPropsOverwritten = Partial = T extends [unknown, ...infer R] ? R : T export type RemoveLast = T extends [...infer H, unknown] ? H : T - -// Get props of a generic `Material` +// Get props of a generic `Material` type AnyMaterialProps = OnlyWritableNonFunctionPropsOverwritten< -Omit, -{ color: THREE.Color | string | number | [r: number, g: number, b: number] | number[] | THREE.Vector3 } + Omit, + { color: THREE.Color | string | number | [r: number, g: number, b: number] | number[] | THREE.Vector3 } > export type WritableMaterialProperties = { [P in keyof AnyMaterialProps]: AnyMaterialProps[P] }