const myService = "MyService";
interface MyService {
doSth(): void;
}
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
use std::{marker::PhantomData, path::PathBuf}; | |
use sqlx::{sqlite::SqliteConnectOptions, Error}; | |
use sqlx::{Connection, Sqlite, Transaction}; | |
use sqlx::{Executor, SqliteConnection}; | |
pub struct DbFactory { | |
conn: SqliteConnection, | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Renders a translation that cannot be extracted statically. | |
* Avoid using this component as much as possible! | |
*/ | |
export class TransMsgDynamic extends React.Component<{ | |
keyAndDefaultTranslation: string; | |
/** | |
* A static id that represents the pool of all possible keys. | |
* If this id is not used in the code base anymore, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
export type JsonSchema = | |
| NumericJsonSchema | |
| StringJsonSchema | |
| ArrayJsonSchema | |
| ObjectJsonSchema | |
| JsonSchemaReference; | |
export interface JsonSchemaReference { | |
$ref: string; | |
} |
This issue is a blocker for the .drawio.png
feature.
This is my context.
I hope something can be done there ;)
- Default Generic Type Argument
I have to admit, I failed to recognize that CustomEditorProvider
is generic when I exploratively implemented my first prototype.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
type State = { kind: 'loading' } | { kind: 'loaded'; service: unknown }; | |
@injectable() | |
class LoadServiceModel { | |
constructor( | |
@injectProps() | |
private readonly props: { | |
service: ServiceId<unknown>; | |
module?: Module; | |
}, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import * as ts from "typescript"; | |
import { dirname, resolve } from "path"; | |
export function createProgram(tsConfigSearchPath: string): ts.Program { | |
const configPath = ts.findConfigFile( | |
tsConfigSearchPath, | |
ts.sys.fileExists, | |
"tsconfig.json" | |
); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import { hotClass, registerUpdateReconciler } from "@hediet/node-reload"; | |
import { ts, Node, SyntaxKind, TypeGuards, Identifier } from "ts-morph"; | |
registerUpdateReconciler(module); | |
import { registerAll } from "C:\\Users\\Henning\\Desktop\\playground\\vscode-debug-visualizer\\data-extraction"; | |
registerAll(); | |
@hotClass(module) | |
export class PatternMatchMain { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
interface FormatDescriptor { | |
id: string; | |
defaultTemplate?: string; | |
} | |
export type Formatted = | |
| { kind: 'text'; value: string } | |
| { kind: 'sequence'; items: Formatted[] } | |
| { kind: 'object'; items: Record<string, Formatted> }; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
export type DestructureTuple<T extends any[]> = T extends [] | |
? false | |
: ((...tuple: T) => void) extends (( | |
first: infer TFirst, | |
...rest: infer TRest | |
) => void) | |
? { first: TFirst; rest: TRest } | |
: false; |
NewerOlder