-
-
Save bouzuya/4dcaef575c1c643eb5e88bcd0189aae2 to your computer and use it in GitHub Desktop.
TypeScript re-export bug?
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
export function f() {} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import { f } from "./f"; | |
export { f }; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
export { f } from "./f"; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
export * from "./f"; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import assert from "assert"; | |
import * as m1 from "./m1"; | |
import * as m2 from "./m2"; | |
import * as m3 from "./m3"; | |
assert(Object.getOwnPropertyDescriptor(m1, "f")?.configurable === true); | |
assert(Object.getOwnPropertyDescriptor(m2, "f")?.configurable === false); | |
assert(Object.getOwnPropertyDescriptor(m3, "f")?.configurable === false); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment