mirror of
https://github.com/hanzo-apps/gallery.git
synced 2026-10-30 14:48:38 +00:00
18 lines
628 B
TypeScript
18 lines
628 B
TypeScript
import type { Conf } from '@hanzo/ui/gui-config';
|
|
|
|
/**
|
|
* Names the motion scale @hanzo/ui configures, so `animation="quickest"` is a
|
|
* checked value rather than a rejected prop.
|
|
*
|
|
* Only `animations` is declared. gui builds its prop types from whatever this
|
|
* interface carries and falls back to the generic config for the rest, so
|
|
* naming the whole config here would also switch the style props to the
|
|
* shorthand-only spelling the config asks for — a rename of every prop in the
|
|
* app, bought for nothing.
|
|
*/
|
|
declare module '@hanzogui/web' {
|
|
interface GuiCustomConfig {
|
|
animations: Conf['animations'];
|
|
}
|
|
}
|