##// END OF EJS Templates
disable pusblish for playground
disable pusblish for playground

File last commit:

r102:c65ea2350b1a v1.3
r106:42a5dbd25b32 default
Show More
index.d.ts
81 lines | 2.4 KiB | video/mp2t | TypeScriptLexer
cin
Added playground project
r97 /// <reference path="./css-plugin.d.ts"/>
cin
Converted to subproject djx, removed dojo-typings
r65
declare namespace JSX {
cin
`Subscribable` is made compatible with rxjs, added map, filter and scan...
r102 type Ref<T> = ((value: T | undefined) => void);
cin
refactoring, adding scope to rendering methods
r96
interface DjxIntrinsicAttributes<E> {
cin
Converted to subproject djx, removed dojo-typings
r65 /** alias for className */
class: string;
/** specifies the name of the property in the widget where the the
* reference to the current object will be stored
*/
"data-dojo-attach-point": string;
/** specifies handlers map for the events */
"data-dojo-attach-event": string;
cin
refactoring, adding scope to rendering methods
r96 ref: Ref<E>;
cin
Converted to subproject djx, removed dojo-typings
r65 /** @deprecated */
[attr: string]: any;
}
interface DjxIntrinsicElements {
}
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];
type ExtractMembers<T, U> = Pick<T, MatchingMemberKeys<T, U>>;
type ExcludeMembers<T, U> = Pick<T, NotMatchingMemberKeys<T, U>>;
type ElementAttrNames<E> = NotMatchingMemberKeys<E, (...args: any[]) => any>;
type ElementAttrType<E, K extends keyof any> = K extends keyof E ? RecursivePartial<E[K]> : string;
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>> &
cin
refactoring, adding scope to rendering methods
r96 DjxIntrinsicAttributes<E>;
cin
Converted to subproject djx, removed dojo-typings
r65
type LaxIntrinsicElementsMap = {
[tag in keyof HTMLElementTagNameMap]: LaxElement<HTMLElementTagNameMap[tag]>
} & DjxIntrinsicElements;
type IntrinsicElements = {
[tag in keyof LaxIntrinsicElementsMap]: RecursivePartial<LaxIntrinsicElementsMap[tag]>;
}
cin
refactoring, adding scope to rendering methods
r96
interface ElementChildrenAttribute {
children: {};
}
interface IntrinsicClassAttributes<T> {
cin
Testing nested watch, release candidate
r101 ref?: (value: T) => void;
children?: unknown;
cin
refactoring, adding scope to rendering methods
r96 }
cin
Converted to subproject djx, removed dojo-typings
r65 }