mirror of
https://github.com/fluencelabs/assemblyscript
synced 2025-04-25 15:12:12 +00:00
Make TypedPropertyDescriptor less type strict (#436)
This commit is contained in:
parent
2131c51932
commit
1867416236
24
std/assembly/index.d.ts
vendored
24
std/assembly/index.d.ts
vendored
@ -932,28 +932,28 @@ declare function global(
|
||||
declare function operator(token: string): (
|
||||
target: any,
|
||||
propertyKey: string,
|
||||
descriptor: TypedPropertyDescriptor<Function>
|
||||
) => TypedPropertyDescriptor<Function> | void;
|
||||
descriptor: TypedPropertyDescriptor<any>
|
||||
) => TypedPropertyDescriptor<any> | void;
|
||||
|
||||
declare namespace operator {
|
||||
/** Annotates a method as a binary operator overload for the specified `token`. */
|
||||
export function binary(token: string): (
|
||||
target: any,
|
||||
propertyKey: string,
|
||||
descriptor: TypedPropertyDescriptor<Function>
|
||||
) => TypedPropertyDescriptor<Function> | void;
|
||||
descriptor: TypedPropertyDescriptor<any>
|
||||
) => TypedPropertyDescriptor<any> | void;
|
||||
/** Annotates a method as an unary prefix operator overload for the specified `token`. */
|
||||
export function prefix(token: string): (
|
||||
target: any,
|
||||
propertyKey: string,
|
||||
descriptor: TypedPropertyDescriptor<Function>
|
||||
) => TypedPropertyDescriptor<Function> | void;
|
||||
descriptor: TypedPropertyDescriptor<any>
|
||||
) => TypedPropertyDescriptor<any> | void;
|
||||
/** Annotates a method as an unary postfix operator overload for the specified `token`. */
|
||||
export function postfix(token: string): (
|
||||
target: any,
|
||||
propertyKey: string,
|
||||
descriptor: TypedPropertyDescriptor<Function>
|
||||
) => TypedPropertyDescriptor<Function> | void;
|
||||
descriptor: TypedPropertyDescriptor<any>
|
||||
) => TypedPropertyDescriptor<any> | void;
|
||||
}
|
||||
|
||||
/** Annotates a class as being unmanaged with limited capabilities. */
|
||||
@ -966,12 +966,12 @@ declare function sealed(constructor: Function): void;
|
||||
declare function inline(
|
||||
target: any,
|
||||
propertyKey: string,
|
||||
descriptor: TypedPropertyDescriptor<Function>
|
||||
): TypedPropertyDescriptor<Function> | void;
|
||||
descriptor: TypedPropertyDescriptor<any>
|
||||
): TypedPropertyDescriptor<any> | void;
|
||||
|
||||
/** Annotates an explicit external name of a function or global. */
|
||||
declare function external(namespace: string, name: string): (
|
||||
target: any,
|
||||
propertyKey: string,
|
||||
descriptor: TypedPropertyDescriptor<Function>
|
||||
) => TypedPropertyDescriptor<Function> | void;
|
||||
descriptor: TypedPropertyDescriptor<any>
|
||||
) => TypedPropertyDescriptor<any> | void;
|
||||
|
Loading…
x
Reference in New Issue
Block a user