Skip to content

Commit

Permalink
Format (#161)
Browse files Browse the repository at this point in the history
  • Loading branch information
Vatroslav Vrbanic committed Sep 11, 2022
1 parent 4cf3d77 commit c2adb40
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
2 changes: 1 addition & 1 deletion src/lib/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -71,4 +71,4 @@ export type {
ButtonProperties,
LinkProperties
} from "./types/types-comp-props"
*/
*/
7 changes: 3 additions & 4 deletions src/lib/types/types-extra.ts
Original file line number Diff line number Diff line change
Expand Up @@ -55,12 +55,11 @@ export type OnlyWritableNonFunctionPropsOverwritten<T, U> = Partial<Overwrite<On
export type RemoveFirst<T extends unknown[]> = T extends [unknown, ...infer R] ? R : T
export type RemoveLast<T extends unknown[]> = T extends [...infer H, unknown] ? H : T


// Get props of a generic `Material`
// Get props of a generic `Material`

type AnyMaterialProps<T> = OnlyWritableNonFunctionPropsOverwritten<
Omit<T, PropBlackList>,
{ color: THREE.Color | string | number | [r: number, g: number, b: number] | number[] | THREE.Vector3 }
Omit<T, PropBlackList>,
{ color: THREE.Color | string | number | [r: number, g: number, b: number] | number[] | THREE.Vector3 }
>

export type WritableMaterialProperties<T> = { [P in keyof AnyMaterialProps<T>]: AnyMaterialProps<T>[P] }
Expand Down

0 comments on commit c2adb40

Please sign in to comment.