remove default function types for $props, $inspect, $bindable, and $host

pull/14777/head
Ottomated 2 years ago
parent 5bc4033421
commit f5d853bfcf

@ -2996,6 +2996,29 @@ declare namespace $effect {
*/ */
declare function $props(): any; declare function $props(): any;
declare namespace $props {
// prevent intellisense from being unhelpful
/** @deprecated */
export const apply: never;
/** @deprecated */
// @ts-ignore
export const arguments: never;
/** @deprecated */
export const bind: never;
/** @deprecated */
export const call: never;
/** @deprecated */
export const caller: never;
/** @deprecated */
export const length: never;
/** @deprecated */
export const name: never;
/** @deprecated */
export const prototype: never;
/** @deprecated */
export const toString: never;
}
/** /**
* Declares a prop as bindable, meaning the parent component can use `bind:propName={value}` to bind to it. * Declares a prop as bindable, meaning the parent component can use `bind:propName={value}` to bind to it.
* *
@ -3007,6 +3030,29 @@ declare function $props(): any;
*/ */
declare function $bindable<T>(fallback?: T): T; declare function $bindable<T>(fallback?: T): T;
declare namespace $bindable {
// prevent intellisense from being unhelpful
/** @deprecated */
export const apply: never;
/** @deprecated */
// @ts-ignore
export const arguments: never;
/** @deprecated */
export const bind: never;
/** @deprecated */
export const call: never;
/** @deprecated */
export const caller: never;
/** @deprecated */
export const length: never;
/** @deprecated */
export const name: never;
/** @deprecated */
export const prototype: never;
/** @deprecated */
export const toString: never;
}
/** /**
* Inspects one or more values whenever they, or the properties they contain, change. Example: * Inspects one or more values whenever they, or the properties they contain, change. Example:
* *
@ -3046,6 +3092,27 @@ declare namespace $inspect {
* </script> * </script>
*/ */
export function trace(name: string): void; export function trace(name: string): void;
// prevent intellisense from being unhelpful
/** @deprecated */
export const apply: never;
/** @deprecated */
// @ts-ignore
export const arguments: never;
/** @deprecated */
export const bind: never;
/** @deprecated */
export const call: never;
/** @deprecated */
export const caller: never;
/** @deprecated */
export const length: never;
/** @deprecated */
export const name: never;
/** @deprecated */
export const prototype: never;
/** @deprecated */
export const toString: never;
} }
/** /**
@ -3069,4 +3136,27 @@ declare namespace $inspect {
*/ */
declare function $host<El extends HTMLElement = HTMLElement>(): El; declare function $host<El extends HTMLElement = HTMLElement>(): El;
//# sourceMappingURL=index.d.ts.map declare namespace $host {
// prevent intellisense from being unhelpful
/** @deprecated */
export const apply: never;
/** @deprecated */
// @ts-ignore
export const arguments: never;
/** @deprecated */
export const bind: never;
/** @deprecated */
export const call: never;
/** @deprecated */
export const caller: never;
/** @deprecated */
export const length: never;
/** @deprecated */
export const name: never;
/** @deprecated */
export const prototype: never;
/** @deprecated */
export const toString: never;
}
//# sourceMappingURL=index.d.ts.map

Loading…
Cancel
Save