@nativescript-community/svelte-native-nativescript-ui
Version:
Svelte Native support for Nativescript UI
42 lines (34 loc) • 1.6 kB
TypeScript
export {} //Ensure this is a module
type Color = import("@nativescript/core/color").Color;
type DrawerTransitionBase = import("nativescript-ui-sidedrawer").DrawerTransitionBase;
type PropertyChangeData = import("@nativescript/core/data/observable").PropertyChangeData;
type SideDrawerLocation = import("nativescript-ui-sidedrawer").SideDrawerLocation;
type View = import("@nativescript/core/ui/core/view").View;
type Override<What, With> = Omit<What, keyof With> & With
declare global {
namespace svelteNative.JSX {
// common.d.ts
type TRadSideDrawerAttributes = Override<ContainerViewAttributes, {
allowEdgeSwipe?: string | boolean;
drawerContent?: string | View;
drawerContentSize?: string | number;
drawerLocation?: SideDrawerLocation;
drawerTransition?: string | DrawerTransitionBase;
gesturesEnabled?: string | boolean;
mainContent?: string | View;
onallowEdgeSwipeChange?: (args: PropertyChangeData) => void;
ondrawerContentChange?: (args: PropertyChangeData) => void;
ondrawerContentSizeChange?: (args: PropertyChangeData) => void;
ondrawerLocationChange?: (args: PropertyChangeData) => void;
ondrawerTransitionChange?: (args: PropertyChangeData) => void;
ongesturesEnabledChange?: (args: PropertyChangeData) => void;
onmainContentChange?: (args: PropertyChangeData) => void;
onshadowColorChange?: (args: PropertyChangeData) => void;
shadowColor?: string | Color;
}>
interface RadSideDrawerAttributes extends TRadSideDrawerAttributes {}
interface IntrinsicElements {
radSideDrawer: RadSideDrawerAttributes;
}
}
}