Skip to main content

type_only_value_uses

Function type_only_value_uses 

Source
pub fn type_only_value_uses(program: &TsProgram) -> Vec<String>
Expand description

#2045: every name program uses as a value that only a type-only import binds (import { type Status } then Status.Active): a TS1361 (cannot be used as a value because it was imported using 'import type'). Opaque text is not searched for uses, as in unbound_names.