##// END OF EJS Templates
Added tag v1.4.0 for changeset 1a190b3a757d
Added tag v1.4.0 for changeset 1a190b3a757d

File last commit:

r109:4a375b9c654a default
r111:c8d682bcaff7 default
Show More
index.d.ts
88 lines | 2.9 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
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);
type Element = Rendition;
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 }