mirror of
https://github.com/TheRealOwenRees/echecsfrance.git
synced 2026-07-23 04:26:57 +00:00
Strongly type form components
Strongly type form components
This commit is contained in:
@@ -67,3 +67,11 @@ export type ResponseMessage = {
|
||||
};
|
||||
|
||||
export type ScrollableElement = Window | HTMLElement;
|
||||
|
||||
// Prettify takes a type as its argument and returns a new type that has the same properties as the original type,
|
||||
// but the properties are not intersected. This means that the new type is easier to read and understand.
|
||||
// https://gist.github.com/palashmon/db68706d4f26d2dbf187e76409905399
|
||||
|
||||
export type Prettify<T> = {
|
||||
[K in keyof T]: T[K];
|
||||
} & {};
|
||||
|
||||
Reference in New Issue
Block a user