deploy: current vibn theia state
Made-with: Cursor
This commit is contained in:
@@ -0,0 +1,4 @@
|
||||
|
||||
export interface DefinedInterface {
|
||||
coolField: number[];
|
||||
}
|
||||
32
examples/api-tests/test-ts-workspace/demo-file.ts
Normal file
32
examples/api-tests/test-ts-workspace/demo-file.ts
Normal file
@@ -0,0 +1,32 @@
|
||||
|
||||
interface DemoInterface {
|
||||
stringField: string;
|
||||
numberField: number;
|
||||
doSomething(): number;
|
||||
}
|
||||
|
||||
class DemoClass implements DemoInterface {
|
||||
stringField: string;
|
||||
numberField: number;
|
||||
constructor(someString: string) {
|
||||
this.stringField = someString;
|
||||
this.numberField = this.stringField.length;
|
||||
}
|
||||
doSomething(): number {
|
||||
let output = 0;
|
||||
for (let i = 0; i < this.stringField.length; i++) {
|
||||
output += this.stringField.charCodeAt(i);
|
||||
}
|
||||
return output;
|
||||
}
|
||||
}
|
||||
|
||||
const demoInstance = new DemoClass('demo');
|
||||
|
||||
const demoVariable = demoInstance.stringField;
|
||||
|
||||
demoVariable.concat('-string');
|
||||
|
||||
import { DefinedInterface } from "./demo-definitions-file";
|
||||
|
||||
const bar: DefinedInterface = { coolField: [] };
|
||||
30
examples/api-tests/test-ts-workspace/tsconfig.json
Normal file
30
examples/api-tests/test-ts-workspace/tsconfig.json
Normal file
@@ -0,0 +1,30 @@
|
||||
{
|
||||
"$schema": "https://json.schemastore.org/tsconfig",
|
||||
"compilerOptions": {
|
||||
"skipLibCheck": true,
|
||||
"declaration": true,
|
||||
"declarationMap": true,
|
||||
"noImplicitAny": true,
|
||||
"noImplicitOverride": true,
|
||||
"noEmitOnError": false,
|
||||
"noImplicitThis": true,
|
||||
"noUnusedLocals": true,
|
||||
"strictNullChecks": true,
|
||||
"experimentalDecorators": true,
|
||||
"emitDecoratorMetadata": true,
|
||||
"importHelpers": true,
|
||||
"downlevelIteration": true,
|
||||
"resolveJsonModule": true,
|
||||
"useDefineForClassFields": false,
|
||||
"module": "CommonJS",
|
||||
"moduleResolution": "Node",
|
||||
"target": "ES2023",
|
||||
"jsx": "react",
|
||||
"lib": [
|
||||
"ES2023",
|
||||
"DOM",
|
||||
"DOM.AsyncIterable"
|
||||
],
|
||||
"sourceMap": true
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user