Skip to content

Instantly share code, notes, and snippets.

@luggage66
Created March 22, 2017 18:51
Show Gist options
  • Save luggage66/d4285cab6c4aece72d4073dd2e3a4125 to your computer and use it in GitHub Desktop.
Save luggage66/d4285cab6c4aece72d4073dd2e3a4125 to your computer and use it in GitHub Desktop.
interface XslElement<P> {
type: string | XslComponent<P> | StatelessComponent<P>;
props: P;
key: string | null;
}
type XslNode = XslElement<any> | string;
interface StatelessComponent<P> {
(props: P & { children?: XslNode }, context?: any): XslElement<any> | undefined;
displayName?: string;
}
interface XslAttributes {
}
declare class XslComponent<P> {
props: Readonly<{ children? }> & Readonly<P>;
}
declare namespace JSX {
interface Element { }
interface ElementClass extends XslComponent<any> {
props: {};
render(): JSX.Element | null;
}
interface ElementAttributesProperty { props: {}; }
interface IntrinsicAttributes extends XslAttributes { }
interface IntrinsicClassAttributes<T> extends XslAttributes { }
interface IntrinsicElements {
[elemName: string]: any;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment