##// END OF EJS Templates
corrected i18n, css modules to support requirejs optimizer...
corrected i18n, css modules to support requirejs optimizer i18n bundles now conforms js modules with default exports (breaking change!)

File last commit:

r52:0b9593714536 default
r53:deb0ed6fb680 v1.0.7 default
Show More
index.d.ts
69 lines | 2.2 KiB | video/mp2t | TypeScriptLexer
cin
Working on IntrisictElements to support legacy and new tsx styles
r40 /// <reference path="./css.d.ts"/>
/// <reference path="./dijit.d.ts"/>
cin
fixed strict mode @bind decorator
r28
declare namespace JSX {
cin
Working on IntrisictElements to support legacy and new tsx styles
r40
cin
Support for Function Components...
r34 interface DjxIntrinsicAttributes {
cin
Corrected tsx typings
r41 /** alias for className */
cin
Support for Function Components...
r34 class: string;
cin
Corrected tsx typings
r41
/** specifies the name of the property in the widget where the the
* reference to the current object will be stored
*/
cin
Support for Function Components...
r34 "data-dojo-attach-point": string;
cin
Corrected tsx typings
r41
/** specifies handlers map for the events */
cin
Support for Function Components...
r34 "data-dojo-attach-event": string;
cin
Fixed startup of DjxWidgetBase to start inner widgets...
r52
/** @deprecated */
cin
Corrected tsx typings
r41 [attr: string]: any;
}
interface DjxIntrinsicElements {
cin
Support for Function Components...
r34 }
cin
Working on IntrisictElements to support legacy and new tsx styles
r40
type RecursivePartial<T> = T extends string | number | boolean | null | undefined | Function ?
T :
{ [k in keyof T]?: RecursivePartial<T[k]> };
type MatchingMemberKeys<T, U> = {
[K in keyof T]: T[K] extends U ? K : never;
}[keyof T];
type NotMatchingMemberKeys<T, U> = {
[K in keyof T]: T[K] extends U ? never : K;
}[keyof T];
cin
Corrected tsx typings
r41
type ExtractMembers<T, U> = Pick<T, MatchingMemberKeys<T, U>>;
type ExcludeMembers<T, U> = Pick<T, NotMatchingMemberKeys<T, U>>;
cin
Working on IntrisictElements to support legacy and new tsx styles
r40 type ElementAttrNames<E> = NotMatchingMemberKeys<E, (...args: any[]) => any>;
type ElementAttrType<E, K extends keyof any> = K extends keyof E ? RecursivePartial<E[K]> : string;
cin
Fixed startup of DjxWidgetBase to start inner widgets...
r52
type ElementAttrNamesBlacklist = "children" | "getRootNode" | keyof EventTarget;
/** This type extracts keys of the specified parameter E by the following rule:
* 1. skips all ElementAttrNamesBlacklist
* 2. skips all methods except with the signature of event handlers
*/
type AssignableElementAttrNames<E> = {
[K in keyof E]: K extends ElementAttrNamesBlacklist ? never :
((evt: Event) => any) extends E[K] ? K :
E[K] extends ((...args: any[]) => any) ? never :
K;
}[keyof E];
type LaxElement<E extends object> =
Pick<E, AssignableElementAttrNames<E>> &
DjxIntrinsicAttributes;
cin
Working on IntrisictElements to support legacy and new tsx styles
r40
cin
Corrected tsx typings
r41 type LaxIntrinsicElementsMap = {
[tag in keyof HTMLElementTagNameMap]: LaxElement<HTMLElementTagNameMap[tag]>
} & DjxIntrinsicElements;
type IntrinsicElements = {
[tag in keyof LaxIntrinsicElementsMap]: RecursivePartial<LaxIntrinsicElementsMap[tag]>;
cin
fixed strict mode @bind decorator
r28 }
}