We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
RETURN_TYPES
1 parent eb257d0 commit 2e8f33dCopy full SHA for 2e8f33d
lib/asbind-instance/supported-ref-types.js
@@ -446,15 +446,8 @@ export const SUPPORTED_REF_TYPES = {
446
};
447
448
// Our return type constant
449
-export const RETURN_TYPES = {
450
- NUMBER: "NUMBER",
451
- STRING: "STRING",
452
- INT8ARRAY: "INT8ARRAY",
453
- UINT8ARRAY: "UINT8ARRAY",
454
- INT16ARRAY: "INT16ARRAY",
455
- UINT16ARRAY: "UINT16ARRAY",
456
- INT32ARRAY: "INT32ARRAY",
457
- UINT32ARRAY: "UINT32ARRAY",
458
- FLOAT32ARRAY: "FLOAT32ARRAY",
459
- FLOAT64ARRAY: "FLOAT64ARRAY"
460
-};
+export const RETURN_TYPES = { NUMBER: "NUMBER" };
+
+for (const refType of Object.keys(SUPPORTED_REF_TYPES)) {
+ RETURN_TYPES[refType] = refType;
+}
0 commit comments