Skip to content

Commit 1867416

Browse files
MaxGraeydcodeIO
authored andcommitted
Make TypedPropertyDescriptor less type strict (AssemblyScript#436)
1 parent 2131c51 commit 1867416

File tree

1 file changed

+12
-12
lines changed

1 file changed

+12
-12
lines changed

std/assembly/index.d.ts

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -932,28 +932,28 @@ declare function global(
932932
declare function operator(token: string): (
933933
target: any,
934934
propertyKey: string,
935-
descriptor: TypedPropertyDescriptor<Function>
936-
) => TypedPropertyDescriptor<Function> | void;
935+
descriptor: TypedPropertyDescriptor<any>
936+
) => TypedPropertyDescriptor<any> | void;
937937

938938
declare namespace operator {
939939
/** Annotates a method as a binary operator overload for the specified `token`. */
940940
export function binary(token: string): (
941941
target: any,
942942
propertyKey: string,
943-
descriptor: TypedPropertyDescriptor<Function>
944-
) => TypedPropertyDescriptor<Function> | void;
943+
descriptor: TypedPropertyDescriptor<any>
944+
) => TypedPropertyDescriptor<any> | void;
945945
/** Annotates a method as an unary prefix operator overload for the specified `token`. */
946946
export function prefix(token: string): (
947947
target: any,
948948
propertyKey: string,
949-
descriptor: TypedPropertyDescriptor<Function>
950-
) => TypedPropertyDescriptor<Function> | void;
949+
descriptor: TypedPropertyDescriptor<any>
950+
) => TypedPropertyDescriptor<any> | void;
951951
/** Annotates a method as an unary postfix operator overload for the specified `token`. */
952952
export function postfix(token: string): (
953953
target: any,
954954
propertyKey: string,
955-
descriptor: TypedPropertyDescriptor<Function>
956-
) => TypedPropertyDescriptor<Function> | void;
955+
descriptor: TypedPropertyDescriptor<any>
956+
) => TypedPropertyDescriptor<any> | void;
957957
}
958958

959959
/** Annotates a class as being unmanaged with limited capabilities. */
@@ -966,12 +966,12 @@ declare function sealed(constructor: Function): void;
966966
declare function inline(
967967
target: any,
968968
propertyKey: string,
969-
descriptor: TypedPropertyDescriptor<Function>
970-
): TypedPropertyDescriptor<Function> | void;
969+
descriptor: TypedPropertyDescriptor<any>
970+
): TypedPropertyDescriptor<any> | void;
971971

972972
/** Annotates an explicit external name of a function or global. */
973973
declare function external(namespace: string, name: string): (
974974
target: any,
975975
propertyKey: string,
976-
descriptor: TypedPropertyDescriptor<Function>
977-
) => TypedPropertyDescriptor<Function> | void;
976+
descriptor: TypedPropertyDescriptor<any>
977+
) => TypedPropertyDescriptor<any> | void;

0 commit comments

Comments
 (0)