---
source: crates/oxc_isolated_declarations/tests/mod.rs
input_file: crates/oxc_isolated_declarations/tests/fixtures/non-exported-binding-elements.ts
---
==================== .D.TS ====================

export declare function foo(): number;
export { c, d, e };
export declare const;


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

  x TS9019: Binding elements can't be exported directly with
  | --isolatedDeclarations.
    ,-[12:16]
 11 | 
 12 | export const { f, g } = { f: 5, g: 6 };
    :                ^
    `----

  x TS9019: Binding elements can't be exported directly with
  | --isolatedDeclarations.
    ,-[12:19]
 11 | 
 12 | export const { f, g } = { f: 5, g: 6 };
    :                   ^
    `----

  x TS9019: Binding elements can't be exported directly with
  | --isolatedDeclarations.
   ,-[8:9]
 7 | // Incorrect
 8 | const { c, d } = { c: 1, d: 2 };
   :         ^
 9 | const [ e ] = [4];
   `----

  x TS9019: Binding elements can't be exported directly with
  | --isolatedDeclarations.
   ,-[8:12]
 7 | // Incorrect
 8 | const { c, d } = { c: 1, d: 2 };
   :            ^
 9 | const [ e ] = [4];
   `----

  x TS9019: Binding elements can't be exported directly with
  | --isolatedDeclarations.
    ,-[9:9]
  8 | const { c, d } = { c: 1, d: 2 };
  9 | const [ e ] = [4];
    :         ^
 10 | export { c, d, e }
    `----
