##// END OF EJS Templates
Corrected Scope.own() to cleanup the supplied object immediately when the scope is disposed already
Corrected Scope.own() to cleanup the supplied object immediately when the scope is disposed already

File last commit:

r129:66546e709732 v1.8.0 default
r131:c7d9ad82b374 v1.8.1 default
Show More
index.d.ts
89 lines | 3.0 KiB | video/mp2t | TypeScriptLexer
cin
linting
r109 // eslint-disable-next-line @typescript-eslint/triple-slash-reference
cin
Added playground project
r97 /// <reference path="./css-plugin.d.ts"/>
cin
Converted to subproject djx, removed dojo-typings
r65
cin
added observable.collect() method to collect a sequnce to the array...
r129 import _WidgetBase = require("dijit/_WidgetBase");
cin
linting
r109 import { Rendition } from "./tsx/traits";
cin
refactoring, adding scope to rendering methods
r96
cin
linting
r109 declare global {
namespace JSX {
type Ref<T> = ((value: T | undefined) => void);
cin
added observable.collect() method to collect a sequnce to the array...
r129 type Element = Rendition | _WidgetBase;
cin
Converted to subproject djx, removed dojo-typings
r65
cin
linting
r109 interface DjxIntrinsicAttributes<E> {
/** alias for className */
class?: string;
cin
Converted to subproject djx, removed dojo-typings
r65
cin
linting
r109 /** 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;
cin
Converted to subproject djx, removed dojo-typings
r65
cin
linting
r109 /** specifies handlers map for the events */
"data-dojo-attach-event"?: string;
cin
refactoring, adding scope to rendering methods
r96
cin
linting
r109 ref?: Ref<E>;
cin
Converted to subproject djx, removed dojo-typings
r65
cin
linting
r109 /** @deprecated */
[attr: string]: unknown;
}
cin
Converted to subproject djx, removed dojo-typings
r65
cin
linting
r109 // eslint-disable-next-line @typescript-eslint/no-empty-interface
interface DjxIntrinsicElements {
}
type RecursivePartial<T> = T extends string | number | boolean | null | undefined | ((...args: unknown[]) => unknown) ?
T :
{ [k in keyof T]?: RecursivePartial<T[k]> };
cin
Converted to subproject djx, removed dojo-typings
r65
cin
linting
r109 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
Converted to subproject djx, removed dojo-typings
r65
cin
linting
r109 type ExtractMembers<T, U> = Pick<T, MatchingMemberKeys<T, U>>;
cin
Converted to subproject djx, removed dojo-typings
r65
cin
linting
r109 type ExcludeMembers<T, U> = Pick<T, NotMatchingMemberKeys<T, U>>;
cin
Converted to subproject djx, removed dojo-typings
r65
cin
linting
r109 type ElementAttrNames<E> = NotMatchingMemberKeys<E, (...args: unknown[]) => unknown>;
cin
Converted to subproject djx, removed dojo-typings
r65
cin
linting
r109 type ElementAttrType<E, K extends string | symbol> = K extends keyof E ? RecursivePartial<E[K]> : string;
cin
Converted to subproject djx, removed dojo-typings
r65
cin
linting
r109 type ElementAttrNamesBlacklist = "children" | "getRootNode" | keyof EventTarget;
cin
Converted to subproject djx, removed dojo-typings
r65
cin
linting
r109 /** 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) => unknown) extends E[K] ? K :
E[K] extends ((...args: unknown[]) => unknown) ? never :
cin
Converted to subproject djx, removed dojo-typings
r65 K;
cin
linting
r109 }[keyof E];
cin
Converted to subproject djx, removed dojo-typings
r65
cin
linting
r109 type LaxElement<E extends object> =
RecursivePartial<Pick<E, AssignableElementAttrNames<E>>> &
DjxIntrinsicAttributes<E>;
cin
Converted to subproject djx, removed dojo-typings
r65
cin
linting
r109 type LaxIntrinsicElementsMap = {
[tag in keyof HTMLElementTagNameMap]: LaxElement<HTMLElementTagNameMap[tag]>
} & DjxIntrinsicElements;
cin
Converted to subproject djx, removed dojo-typings
r65
cin
linting
r109 type IntrinsicElements = {
[tag in keyof LaxIntrinsicElementsMap]: LaxIntrinsicElementsMap[tag];
};
cin
refactoring, adding scope to rendering methods
r96
cin
linting
r109 interface ElementChildrenAttribute {
children: unknown;
}
cin
refactoring, adding scope to rendering methods
r96
cin
linting
r109 interface IntrinsicClassAttributes<T> {
ref?: Ref<T>;
children?: unknown;
}
cin
refactoring, adding scope to rendering methods
r96 }
cin
linting
r109 }