Sexus Prime
Sexus Prime
DDeno
Created by Sexus Prime on 4/4/2023 in #help
How use namespace on Deno
i am trying to use the same namespace in multiple modules but what used to work in node, doesn't work in deno:
/* test1.ts */

/// <reference path="./test2.ts" />

namespace Test {
export const a = 3;
}
/* test1.ts */

/// <reference path="./test2.ts" />

namespace Test {
export const a = 3;
}
/* test2.ts */

/// <reference path="./test1.ts" />

export namespace Test {
export const b = 5;
// If i try to use "a", doesn't work
}
/* test2.ts */

/// <reference path="./test1.ts" />

export namespace Test {
export const b = 5;
// If i try to use "a", doesn't work
}
/* test3.ts */
/// <reference path="./test1.ts" />
/// <reference path="./test2.ts" />

console.log(Test.a); // "Cannot find name 'Test'."
/* test3.ts */
/// <reference path="./test1.ts" />
/// <reference path="./test2.ts" />

console.log(Test.a); // "Cannot find name 'Test'."
4 replies
DDeno
Created by Sexus Prime on 3/23/2023 in #help
import cache not working
5 replies
DDeno
Created by Sexus Prime on 12/9/2022 in #help
--max-stack-size
I can set the maximum call stack size on deno?
1 replies