summaryrefslogtreecommitdiff
path: root/tests/testdata/npm/cjs_module_export_assignment_number/main.ts
diff options
context:
space:
mode:
Diffstat (limited to 'tests/testdata/npm/cjs_module_export_assignment_number/main.ts')
-rw-r--r--tests/testdata/npm/cjs_module_export_assignment_number/main.ts7
1 files changed, 7 insertions, 0 deletions
diff --git a/tests/testdata/npm/cjs_module_export_assignment_number/main.ts b/tests/testdata/npm/cjs_module_export_assignment_number/main.ts
new file mode 100644
index 000000000..aee24bf19
--- /dev/null
+++ b/tests/testdata/npm/cjs_module_export_assignment_number/main.ts
@@ -0,0 +1,7 @@
+import defaultImport, * as namespaceImport from "npm:@denotest/cjs-module-export-assignment-number";
+
+const testDefault: 5 = defaultImport;
+console.log(testDefault);
+const testNamespace: 5 = namespaceImport.default;
+console.log(testNamespace);
+console.log(namespaceImport);