Skip to content

Commit 17433da

Browse files
committed
chore: missing function for previous commit
# Conflicts: # src/index.common.ts
1 parent c35ecb1 commit 17433da

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

src/index.common.ts

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,19 @@ export function nativeProperty(...args) {
5353
return nativePropertyGenerator(args[startIndex], args[startIndex + 1], options || {});
5454
}
5555
}
56+
export function nativeMapVecProperty(target: any, k?, desc?: PropertyDescriptor): any;
57+
export function nativeMapVecProperty(options: NativePropertyOptions): (target: any, k?, desc?: PropertyDescriptor) => any;
58+
export function nativeMapVecProperty(...args) {
59+
return nativeProperty(
60+
{
61+
converter: {
62+
fromNative: fromNativeMapVec,
63+
toNative: toNativeMapVec,
64+
},
65+
},
66+
...args
67+
);
68+
}
5669

5770
export function nonenumerable(target: any, name: string): void;
5871
export function nonenumerable(target: any, name: string, desc: PropertyDescriptor): PropertyDescriptor;

0 commit comments

Comments
 (0)