---
source: crates/oxc_isolated_declarations/tests/mod.rs
input_file: crates/oxc_isolated_declarations/tests/fixtures/infer-template-literal.ts
---
==================== .D.TS ====================

export declare const CSS_VARS_HELPER = "useCssVars";
export declare function g(func?: string): void;
export declare const F: {
	readonly a: "a";
	readonly b: readonly ["b"];
};
export declare let GOOD: string;
export declare const BAD: unknown;
export declare let BAD2: unknown;


==================== Errors ====================

  x TS9010: Variable must have an explicit type annotation with
  | --isolatedDeclarations.
    ,-[12:14]
 11 | 
 12 | export const BAD = `useCssV${v}ars`
    :              ^^^
 13 | 
    `----

  x TS9010: Variable must have an explicit type annotation with
  | --isolatedDeclarations.
    ,-[14:12]
 13 | 
 14 | export let BAD2 = `useCssV${v}ars` as const
    :            ^^^^
    `----
