Skip to content

Commit

Permalink
No commit message
Browse files Browse the repository at this point in the history
  • Loading branch information
NikolaRHristov committed Nov 22, 2024
1 parent deae97d commit f5dc7a4
Show file tree
Hide file tree
Showing 10 changed files with 28 additions and 0 deletions.
3 changes: 3 additions & 0 deletions Example/Input/Complex.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
const condition = true;
const value = condition ? 1 : 2;
const use = value;
3 changes: 3 additions & 0 deletions Example/Input/Complex/Literal.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
const name = "World";
const greeting = `Hello ${name}`;
const use = greeting;
2 changes: 2 additions & 0 deletions Example/Input/Export.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
const internal = 42;
export const exported = internal;
3 changes: 3 additions & 0 deletions Example/Input/Import.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
import { something } from "./other";

const use = something;
5 changes: 5 additions & 0 deletions Example/Input/Interface.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
interface Test {
prop: string;
}
const obj: Test = { prop: "test" };
const use: Test = obj;
2 changes: 2 additions & 0 deletions Example/Input/Null.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
const nullVal = null;
const use = nullVal;
3 changes: 3 additions & 0 deletions Example/Input/Object.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
const obj = { a: 1, b: 2 };
const { a } = obj;
const use = a;
3 changes: 3 additions & 0 deletions Example/Input/Reassigned.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
let x = 1;
x = 2;
const use = x;
2 changes: 2 additions & 0 deletions Example/Input/Simple/Literal/String/Array.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
const arr: Array<string> = ["hello"];
const copy: Array<string> = arr;
2 changes: 2 additions & 0 deletions Example/Input/Undefined.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
const undef = undefined;
const use = undef;

0 comments on commit f5dc7a4

Please sign in to comment.