mirror of
https://github.com/hanzoai/tsgo.git
synced 2026-10-30 19:37:15 +00:00
20 lines
838 B
Plaintext
20 lines
838 B
Plaintext
main.ts(3,13): error TS1362: 'c' cannot be used as a value because it was exported using 'export type'.
|
|
main.ts(4,19): error TS2339: Property 'c' does not exist on type 'typeof import("types")'.
|
|
|
|
|
|
==== main.ts (2 errors) ====
|
|
import { c } from './types'
|
|
import * as types from './types'
|
|
console.log(c) // Fails as expected, import is still allowed though.
|
|
~
|
|
!!! error TS1362: 'c' cannot be used as a value because it was exported using 'export type'.
|
|
!!! related TS1377 types.ts:1:1: 'c' was exported here.
|
|
console.log(types.c) // Expected an error here.
|
|
~
|
|
!!! error TS2339: Property 'c' does not exist on type 'typeof import("types")'.
|
|
|
|
==== types.ts (0 errors) ====
|
|
export type * from './values'
|
|
|
|
==== values.ts (0 errors) ====
|
|
export const c = 10 |