type stringclasses 7
values | content stringlengths 4 9.55k | repo stringlengths 7 96 | path stringlengths 4 178 | language stringclasses 1
value |
|---|---|---|---|---|
MethodDeclaration |
createNotebookEditorDecorationType(options: vscode.NotebookDecorationRenderOptions): vscode.NotebookEditorDecorationType {
return extHostNotebook.createNotebookEditorDecorationType(options);
} | Alias-Alan/vscode | src/vs/workbench/api/common/extHost.api.impl.ts | TypeScript |
MethodDeclaration |
onDidChangeActiveNotebookEditor(listener, thisArgs?, disposables?) {
checkProposedApiEnabled(extension);
return extHostNotebook.onDidChangeActiveNotebookEditor(listener, thisArgs, disposables);
} | Alias-Alan/vscode | src/vs/workbench/api/common/extHost.api.impl.ts | TypeScript |
MethodDeclaration |
onDidChangeNotebookDocumentMetadata(listener, thisArgs?, disposables?) {
checkProposedApiEnabled(extension);
return extHostNotebook.onDidChangeNotebookDocumentMetadata(listener, thisArgs, disposables);
} | Alias-Alan/vscode | src/vs/workbench/api/common/extHost.api.impl.ts | TypeScript |
MethodDeclaration |
onDidChangeNotebookCells(listener, thisArgs?, disposables?) {
checkProposedApiEnabled(extension);
return extHostNotebook.onDidChangeNotebookCells(listener, thisArgs, disposables);
} | Alias-Alan/vscode | src/vs/workbench/api/common/extHost.api.impl.ts | TypeScript |
MethodDeclaration |
onDidChangeNotebookEditorSelection(listener, thisArgs?, disposables?) {
checkProposedApiEnabled(extension);
return extHostNotebook.onDidChangeNotebookEditorSelection(listener, thisArgs, disposables);
} | Alias-Alan/vscode | src/vs/workbench/api/common/extHost.api.impl.ts | TypeScript |
MethodDeclaration |
onDidChangeNotebookEditorVisibleRanges(listener, thisArgs?, disposables?) {
checkProposedApiEnabled(extension);
return extHostNotebook.onDidChangeNotebookEditorVisibleRanges(listener, thisArgs, disposables);
} | Alias-Alan/vscode | src/vs/workbench/api/common/extHost.api.impl.ts | TypeScript |
MethodDeclaration |
onDidChangeCellOutputs(listener, thisArgs?, disposables?) {
checkProposedApiEnabled(extension);
return extHostNotebook.onDidChangeCellOutputs(listener, thisArgs, disposables);
} | Alias-Alan/vscode | src/vs/workbench/api/common/extHost.api.impl.ts | TypeScript |
MethodDeclaration |
onDidChangeCellLanguage(listener, thisArgs?, disposables?) {
checkProposedApiEnabled(extension);
return extHostNotebook.onDidChangeCellLanguage(listener, thisArgs, disposables);
} | Alias-Alan/vscode | src/vs/workbench/api/common/extHost.api.impl.ts | TypeScript |
MethodDeclaration |
onDidChangeCellMetadata(listener, thisArgs?, disposables?) {
checkProposedApiEnabled(extension);
return extHostNotebook.onDidChangeCellMetadata(listener, thisArgs, disposables);
} | Alias-Alan/vscode | src/vs/workbench/api/common/extHost.api.impl.ts | TypeScript |
MethodDeclaration |
createConcatTextDocument(notebook, selector) {
checkProposedApiEnabled(extension);
return new ExtHostNotebookConcatDocument(extHostNotebook, extHostDocuments, notebook, selector);
} | Alias-Alan/vscode | src/vs/workbench/api/common/extHost.api.impl.ts | TypeScript |
MethodDeclaration |
createCellStatusBarItem(cell: vscode.NotebookCell, alignment?: vscode.NotebookCellStatusBarAlignment, priority?: number): vscode.NotebookCellStatusBarItem {
checkProposedApiEnabled(extension);
return extHostNotebook.createNotebookCellStatusBarItemInternal(cell, alignment, priority);
} | Alias-Alan/vscode | src/vs/workbench/api/common/extHost.api.impl.ts | TypeScript |
MethodDeclaration |
activate(): Thenable<T> {
return this._extensionService.activateByIdWithErrors(this._identifier, { startup: false, extensionId: this._originExtensionId, activationEvent: 'api' }).then(() => this.exports);
} | Alias-Alan/vscode | src/vs/workbench/api/common/extHost.api.impl.ts | TypeScript |
InterfaceDeclaration |
interface RollupBase {
/** The type of rollup. */
type: string
function: string
} | bkeys818/notion-api-types | src/responses/properties/rollups.ts | TypeScript |
InterfaceDeclaration |
export interface Number extends RollupBase {
type: 'number'
number: number | null
function:
| 'show_original'
| 'show_unique_values'
| 'count_all'
| 'count_values'
| 'count_unique_values'
| 'count_empty'
| 'count_not_empty'
| 'percent_empty'
... | bkeys818/notion-api-types | src/responses/properties/rollups.ts | TypeScript |
InterfaceDeclaration |
export interface Date extends RollupBase {
type: 'date'
date: NotionDate | null
function:
| 'show_original'
| 'show_unique_values'
| 'count_all'
| 'count_values'
| 'count_unique_values'
| 'count_empty'
| 'count_not_empty'
| 'percent_empty'
... | bkeys818/notion-api-types | src/responses/properties/rollups.ts | TypeScript |
InterfaceDeclaration |
export interface Array extends RollupBase {
type: 'array'
array: OmitId<Exclude<PageProperty, PageProperties.Rollup>>[]
function:
| 'show_original'
| 'show_unique_values'
| 'count_all'
| 'count_values'
| 'count_unique_values'
| 'count_empty'
| 'count_... | bkeys818/notion-api-types | src/responses/properties/rollups.ts | TypeScript |
TypeAliasDeclaration |
type OmitId<T extends { id: string }> = T extends T
? Resolve<Omit<T, 'id'>>
: never | bkeys818/notion-api-types | src/responses/properties/rollups.ts | TypeScript |
FunctionDeclaration |
export function add(target){
let list=summary.getCurrentSummary();
console.log(list);
console.log(summary.fillToContentTree(list));
console.log('addChapter',target);
vscode.window.showInputBox({placeHolder:'Chapter Name'}).then((fileName)=>{
if(fileName!==undefined)console.log(fileName)
... | wzdxy/vscode-gitbook-tools | src/chapter.ts | TypeScript |
FunctionDeclaration |
export function remove(target){
console.log('deleteChapter',utils.getRaletivePathFromRoot(target.path));
vscode.window.showQuickPick(['Delete ( ) Files and ( ) Folders. Then Update SUMMARY.md ','Cancel']).then((arg)=>{console.log(arg)});
} | wzdxy/vscode-gitbook-tools | src/chapter.ts | TypeScript |
FunctionDeclaration |
export function rename(target){
console.log('renameFileOrFolder',utils.getRaletivePathFromRoot(target.path));
vscode.window.showInputBox({placeHolder:'New File/Folder Name'}).then((newName)=>{
if(newName!==undefined)console.log(newName)
})
} | wzdxy/vscode-gitbook-tools | src/chapter.ts | TypeScript |
ArrowFunction |
(fileName)=>{
if(fileName!==undefined)console.log(fileName)
} | wzdxy/vscode-gitbook-tools | src/chapter.ts | TypeScript |
ArrowFunction |
(arg)=>{console.log(arg)} | wzdxy/vscode-gitbook-tools | src/chapter.ts | TypeScript |
ArrowFunction |
(newName)=>{
if(newName!==undefined)console.log(newName)
} | wzdxy/vscode-gitbook-tools | src/chapter.ts | TypeScript |
ClassDeclaration |
@Entity()
export class User {
@PrimaryGeneratedColumn()
id: number;
@Column()
username: string;
@Column()
password: string;
@Column()
role: string;
} | chinh000529/nestjs_bai2 | src/user/user.entity.ts | TypeScript |
ArrowFunction |
() => {
const [value, setValue] = useState<Item | null>(items[0]);
return (
<StoryBookExample className={cnDocsDecorator('Section')}>
<Tabs
value={value}
onChange={({ value }) | SergeyKatugin/uikit | src/components/Tabs/__stories__/examples/TabsExampleIcon/TabsExampleIcon.tsx | TypeScript |
TypeAliasDeclaration |
type Item = {
name: string;
icon?: IconComponent;
}; | SergeyKatugin/uikit | src/components/Tabs/__stories__/examples/TabsExampleIcon/TabsExampleIcon.tsx | TypeScript |
MethodDeclaration |
cnDocsDecorator('Section') | SergeyKatugin/uikit | src/components/Tabs/__stories__/examples/TabsExampleIcon/TabsExampleIcon.tsx | TypeScript |
InterfaceDeclaration |
interface Window {
// @alicloud/console-components-lib-documenter/loadDocModule
// 模块中包含了systemjs,后者不能在SSR环境中使用
// 因此在gatsby-browser引它,把loadDocModule挂载到window上
loadDocModule: (docDef: {
prodPkgName: string
actualLoadPkgName: string
actualLoadPkgVersion: string
}) => Promise<any>
} | WebEngineerLi/console-components | dev-kit/gatsby-theme-console-doc/src/runtime/SiteLayout/DynamicDoc/globals.d.ts | TypeScript |
TypeAliasDeclaration | /*---------------------------------------------------------------------------------------------
* Copyright (c) 2019 Bentley Systems, Incorporated. All rights reserved.
* Licensed under the MIT License. See LICENSE.md in the project root for license terms.
*--------------------------------------------------------------... | naveedkhan8067/imodeljs | ui/core/src/ui-core/utils/typeUtils.ts | TypeScript |
ArrowFunction |
(response:any) =>{
this.restaurantes = response
} | herfel97/Examen-APP-Distribuidas--Angular | src/app/pages/icons/icons.component.ts | TypeScript |
ArrowFunction |
(error: any) => {
console.log(error)
} | herfel97/Examen-APP-Distribuidas--Angular | src/app/pages/icons/icons.component.ts | TypeScript |
ArrowFunction |
data => {
console.log(data);
alert(data.respuesta);
window.location.reload();
} | herfel97/Examen-APP-Distribuidas--Angular | src/app/pages/icons/icons.component.ts | TypeScript |
ClassDeclaration |
@Component({
selector: "app-icons",
templateUrl: "icons.component.html"
})
export class IconsComponent implements OnInit {
telefono:string;
formulario = this.formBuilder.group({
nombre: [ '' ,Validators.required ],
direccion:[ '' ,Validators.required] ,
telefono:['', Validators.compose([
... | herfel97/Examen-APP-Distribuidas--Angular | src/app/pages/icons/icons.component.ts | TypeScript |
MethodDeclaration |
ngOnInit() {
this.service.getRestaurantes().subscribe
((response:any) =>{
this.restaurantes = response
}, (error: any) => {
console.log(error)
});
} | herfel97/Examen-APP-Distribuidas--Angular | src/app/pages/icons/icons.component.ts | TypeScript |
MethodDeclaration |
submitForm(form:restauranteI){
this.service.registrarRestaurant(form).subscribe(data => {
console.log(data);
alert(data.respuesta);
window.location.reload();
})
} | herfel97/Examen-APP-Distribuidas--Angular | src/app/pages/icons/icons.component.ts | TypeScript |
ArrowFunction |
() => {
laws.Setoid.reflexivity({ x: "a" });
} | 1ven/fantasy-types | src/built-in/Object/__tests__/index.spec.ts | TypeScript |
ArrowFunction |
() => {
laws.Setoid.symmetry({ x: "a" }, { x: "b" });
} | 1ven/fantasy-types | src/built-in/Object/__tests__/index.spec.ts | TypeScript |
ArrowFunction |
() => {
laws.Setoid.transitivity({ x: "a" }, { x: "a" }, { x: "a" });
} | 1ven/fantasy-types | src/built-in/Object/__tests__/index.spec.ts | TypeScript |
ArrowFunction |
() => {
laws.Ord.totality({ x: "a" }, { x: "b" });
} | 1ven/fantasy-types | src/built-in/Object/__tests__/index.spec.ts | TypeScript |
ArrowFunction |
() => {
laws.Ord.antisymmetry({ x: "a" }, { x: "a" });
} | 1ven/fantasy-types | src/built-in/Object/__tests__/index.spec.ts | TypeScript |
ArrowFunction |
() => {
laws.Ord.transitivity({ x: 1 }, { x: 2 }, { x: 3 });
} | 1ven/fantasy-types | src/built-in/Object/__tests__/index.spec.ts | TypeScript |
ArrowFunction |
() => {
laws.Semigroup.associativity({ x: "a" }, { x: "b" }, { x: "c" });
} | 1ven/fantasy-types | src/built-in/Object/__tests__/index.spec.ts | TypeScript |
ArrowFunction |
() => {
laws.Monoid.rightIdentity(Object, { x: "m" });
} | 1ven/fantasy-types | src/built-in/Object/__tests__/index.spec.ts | TypeScript |
ArrowFunction |
() => {
laws.Monoid.leftIdentity(Object, { x: "m" });
} | 1ven/fantasy-types | src/built-in/Object/__tests__/index.spec.ts | TypeScript |
ArrowFunction |
() => {
laws.Functor.identity({ x: "u" });
} | 1ven/fantasy-types | src/built-in/Object/__tests__/index.spec.ts | TypeScript |
ArrowFunction |
() => {
laws.Functor.composition(
{ x: "u" },
a => ({ x: a + "f" }),
a => ({ x: a + "g" })
);
} | 1ven/fantasy-types | src/built-in/Object/__tests__/index.spec.ts | TypeScript |
ArrowFunction |
a => ({ x: a + "f" }) | 1ven/fantasy-types | src/built-in/Object/__tests__/index.spec.ts | TypeScript |
ArrowFunction |
a => ({ x: a + "g" }) | 1ven/fantasy-types | src/built-in/Object/__tests__/index.spec.ts | TypeScript |
ArrowFunction |
() => {
laws.Apply.composition({ x: "v" }, { x: a => a + "u" }, { x: a => a + "a" });
} | 1ven/fantasy-types | src/built-in/Object/__tests__/index.spec.ts | TypeScript |
ArrowFunction |
a => a + "u" | 1ven/fantasy-types | src/built-in/Object/__tests__/index.spec.ts | TypeScript |
ArrowFunction |
a => a + "a" | 1ven/fantasy-types | src/built-in/Object/__tests__/index.spec.ts | TypeScript |
ArrowFunction |
() => {
laws.Alt.associativity({ x: "a" }, { x: "b" }, { x: "c" });
} | 1ven/fantasy-types | src/built-in/Object/__tests__/index.spec.ts | TypeScript |
ArrowFunction |
() => {
laws.Alt.distributivity({ x: "a" }, { x: "b" }, x => x + "f");
} | 1ven/fantasy-types | src/built-in/Object/__tests__/index.spec.ts | TypeScript |
ArrowFunction |
x => x + "f" | 1ven/fantasy-types | src/built-in/Object/__tests__/index.spec.ts | TypeScript |
ArrowFunction |
() => {
laws.Plus.rightIdentity(Object, { x: "x" });
} | 1ven/fantasy-types | src/built-in/Object/__tests__/index.spec.ts | TypeScript |
ArrowFunction |
() => {
laws.Plus.leftIdentity(Object, { x: "x" });
} | 1ven/fantasy-types | src/built-in/Object/__tests__/index.spec.ts | TypeScript |
ArrowFunction |
() => {
laws.Plus.annihilation(Object, a => ({ x: a + "f" }));
} | 1ven/fantasy-types | src/built-in/Object/__tests__/index.spec.ts | TypeScript |
ArrowFunction |
() => {
laws.Alternative.distributivity(
{ x: "x" },
{ x: a => a + "f" },
{ x: a => a + "f" }
);
} | 1ven/fantasy-types | src/built-in/Object/__tests__/index.spec.ts | TypeScript |
ArrowFunction |
a => a + "f" | 1ven/fantasy-types | src/built-in/Object/__tests__/index.spec.ts | TypeScript |
ArrowFunction |
() => {
laws.Alternative.annihilation(Object, { x: "x" });
} | 1ven/fantasy-types | src/built-in/Object/__tests__/index.spec.ts | TypeScript |
ArrowFunction |
() => {
laws.Foldable.associativity({ x: "u" }, (acc, val) => acc + val.x);
} | 1ven/fantasy-types | src/built-in/Object/__tests__/index.spec.ts | TypeScript |
ArrowFunction |
(acc, val) => acc + val.x | 1ven/fantasy-types | src/built-in/Object/__tests__/index.spec.ts | TypeScript |
ArrowFunction |
() => {
laws.Traversable.identity(Array, { x: "u" });
} | 1ven/fantasy-types | src/built-in/Object/__tests__/index.spec.ts | TypeScript |
ArrowFunction |
() => {
laws.Traversable.composition(Array, Array, {
x: {
y: {
z: "u"
}
}
});
} | 1ven/fantasy-types | src/built-in/Object/__tests__/index.spec.ts | TypeScript |
ArrowFunction |
() => {
beforeEach(async(() => {
TestBed.configureTestingModule({
declarations: [
AppComponent
],
}).compileComponents();
}));
it('should create the app', async(() => {
const fixture = TestBed.createComponent(AppComponent);
const app = fixture.debugElement.componentInstance;
... | harshyadav9/angularMaterialConduent | src/app/app.component.spec.ts | TypeScript |
ArrowFunction |
() => {
const fixture = TestBed.createComponent(AppComponent);
const app = fixture.debugElement.componentInstance;
expect(app.title).toEqual('app');
} | harshyadav9/angularMaterialConduent | src/app/app.component.spec.ts | TypeScript |
ArrowFunction |
() => {
const fixture = TestBed.createComponent(AppComponent);
fixture.detectChanges();
const compiled = fixture.debugElement.nativeElement;
expect(compiled.querySelector('h1').textContent).toContain('Welcome to angularMaterial!');
} | harshyadav9/angularMaterialConduent | src/app/app.component.spec.ts | TypeScript |
FunctionDeclaration |
export function originalLocaleIdFactory(originalLocalId: string): string {
return localStorage.getItem('localeId') || 'fa-IR';
} | tiampersian/kendo-jalali-date | src/app/app.module.ts | TypeScript |
FunctionDeclaration |
export function isRtl(): boolean {
return localStorage.getItem('localeId') === 'fa-IR';
} | tiampersian/kendo-jalali-date | src/app/app.module.ts | TypeScript |
ClassDeclaration |
@NgModule({
declarations: [
AppComponent
],
imports: [
BrowserAnimationsModule,
BrowserModule,
FormsModule,
KendoJalaliDateInputsModule
],
providers: [
{ provide: LOCALE_ID, useFactory: originalLocaleIdFactory },
{ provide: RTL, useFactory: isRtl, deps: [] },
],
bootstrap: [Ap... | tiampersian/kendo-jalali-date | src/app/app.module.ts | TypeScript |
ClassDeclaration |
export default class CodeBlockWriter {
private readonly _indentationText;
private readonly _newLine;
private readonly _useTabs;
private readonly _quoteChar;
private readonly _indentNumberOfSpaces;
private _currentIndentation;
private _queuedIndentation;
private _text;
priva... | codebyravi/uniquiki | node_modules/code-block-writer/dist/code-block-writer.d.ts | TypeScript |
InterfaceDeclaration |
export interface Options {
newLine: string;
indentNumberOfSpaces: number;
useTabs: boolean;
useSingleQuote: boolean;
} | codebyravi/uniquiki | node_modules/code-block-writer/dist/code-block-writer.d.ts | TypeScript |
MethodDeclaration | /**
* Gets the options.
*/
getOptions(): Options; | codebyravi/uniquiki | node_modules/code-block-writer/dist/code-block-writer.d.ts | TypeScript |
MethodDeclaration | /**
* Queues the indentation level for the next lines written.
* @param indentationLevel - Indentation level to queue.
*/
queueIndentationLevel(indentationLevel: number): this; | codebyravi/uniquiki | node_modules/code-block-writer/dist/code-block-writer.d.ts | TypeScript |
MethodDeclaration | /**
* Queues the indentation level for the next lines written using the provided indentation text.
* @param indentationText - Gets the indentation level from the indentation text.
*/
queueIndentationLevel(indentationText: string): this; | codebyravi/uniquiki | node_modules/code-block-writer/dist/code-block-writer.d.ts | TypeScript |
MethodDeclaration | /**
* Sets the current indentation level.
* @param indentationLevel - Indentation level to be at.
*/
setIndentationLevel(indentationLevel: number): this; | codebyravi/uniquiki | node_modules/code-block-writer/dist/code-block-writer.d.ts | TypeScript |
MethodDeclaration | /**
* Sets the current indentation using the provided indentation text.
* @param indentationText - Gets the indentation level from the indentation text.
*/
setIndentationLevel(indentationText: string): this; | codebyravi/uniquiki | node_modules/code-block-writer/dist/code-block-writer.d.ts | TypeScript |
MethodDeclaration | /**
* Gets the current indentation level.
*/
getIndentationLevel(): number; | codebyravi/uniquiki | node_modules/code-block-writer/dist/code-block-writer.d.ts | TypeScript |
MethodDeclaration | /**
* Writes a block using braces.
* @param block - Write using the writer within this block.
*/
block(block?: () => void): this; | codebyravi/uniquiki | node_modules/code-block-writer/dist/code-block-writer.d.ts | TypeScript |
MethodDeclaration | /**
* Writes an inline block with braces.
* @param block - Write using the writer within this block.
*/
inlineBlock(block?: () => void): this; | codebyravi/uniquiki | node_modules/code-block-writer/dist/code-block-writer.d.ts | TypeScript |
MethodDeclaration | /**
* Indents a block of code.
* @param block - Block to indent.
*/
indentBlock(block: () => void): this; | codebyravi/uniquiki | node_modules/code-block-writer/dist/code-block-writer.d.ts | TypeScript |
MethodDeclaration |
private _indentBlockInternal(block?); | codebyravi/uniquiki | node_modules/code-block-writer/dist/code-block-writer.d.ts | TypeScript |
MethodDeclaration | /**
* Conditionally writes a line of text.
* @param condition - Condition to evaluate.
* @param textFunc - A function that returns a string to write if the condition is true.
*/
conditionalWriteLine(condition: boolean | undefined, textFunc: () => string): this; | codebyravi/uniquiki | node_modules/code-block-writer/dist/code-block-writer.d.ts | TypeScript |
MethodDeclaration | /**
* Conditionally writes a line of text.
* @param condition - Condition to evaluate.
* @param text - Text to write if the condition is true.
*/
conditionalWriteLine(condition: boolean | undefined, text: string): this; | codebyravi/uniquiki | node_modules/code-block-writer/dist/code-block-writer.d.ts | TypeScript |
MethodDeclaration | /**
* Writes a line of text.
* @param text - String to write.
*/
writeLine(text: string): this; | codebyravi/uniquiki | node_modules/code-block-writer/dist/code-block-writer.d.ts | TypeScript |
MethodDeclaration | /**
* Writes a newline if the last line was not a newline.
*/
newLineIfLastNot(): this; | codebyravi/uniquiki | node_modules/code-block-writer/dist/code-block-writer.d.ts | TypeScript |
MethodDeclaration | /**
* Writes a blank line if the last written text was not a blank line.
*/
blankLineIfLastNot(): this; | codebyravi/uniquiki | node_modules/code-block-writer/dist/code-block-writer.d.ts | TypeScript |
MethodDeclaration | /**
* Writes a blank line if the condition is true.
* @param condition - Condition to evaluate.
*/
conditionalBlankLine(condition: boolean | undefined): this; | codebyravi/uniquiki | node_modules/code-block-writer/dist/code-block-writer.d.ts | TypeScript |
MethodDeclaration | /**
* Writes a blank line.
*/
blankLine(): this; | codebyravi/uniquiki | node_modules/code-block-writer/dist/code-block-writer.d.ts | TypeScript |
MethodDeclaration | /**
* Indents the code one level for the current line.
*/
indent(): this; | codebyravi/uniquiki | node_modules/code-block-writer/dist/code-block-writer.d.ts | TypeScript |
MethodDeclaration | /**
* Writes a newline if the condition is true.
* @param condition - Condition to evaluate.
*/
conditionalNewLine(condition: boolean | undefined): this; | codebyravi/uniquiki | node_modules/code-block-writer/dist/code-block-writer.d.ts | TypeScript |
MethodDeclaration | /**
* Writes a newline.
*/
newLine(): this; | codebyravi/uniquiki | node_modules/code-block-writer/dist/code-block-writer.d.ts | TypeScript |
MethodDeclaration | /**
* Writes a quote character.
*/
quote(): this; | codebyravi/uniquiki | node_modules/code-block-writer/dist/code-block-writer.d.ts | TypeScript |
MethodDeclaration | /**
* Writes text surrounded in quotes.
* @param text - Text to write.
*/
quote(text: string): this; | codebyravi/uniquiki | node_modules/code-block-writer/dist/code-block-writer.d.ts | TypeScript |
MethodDeclaration | /**
* Writes a space if the last character was not a space.
*/
spaceIfLastNot(): this; | codebyravi/uniquiki | node_modules/code-block-writer/dist/code-block-writer.d.ts | TypeScript |
MethodDeclaration | /**
* Writes a space.
* @param times - Number of times to write a space.
*/
space(times?: number): this; | codebyravi/uniquiki | node_modules/code-block-writer/dist/code-block-writer.d.ts | TypeScript |
MethodDeclaration | /**
* Writes a tab if the last character was not a tab.
*/
tabIfLastNot(): this; | codebyravi/uniquiki | node_modules/code-block-writer/dist/code-block-writer.d.ts | TypeScript |
MethodDeclaration | /**
* Writes a tab.
* @param times - Number of times to write a tab.
*/
tab(times?: number): this; | codebyravi/uniquiki | node_modules/code-block-writer/dist/code-block-writer.d.ts | TypeScript |
MethodDeclaration | /**
* Conditionally writes text.
* @param condition - Condition to evaluate.
* @param textFunc - A function that returns a string to write if the condition is true.
*/
conditionalWrite(condition: boolean | undefined, textFunc: () => string): this; | codebyravi/uniquiki | node_modules/code-block-writer/dist/code-block-writer.d.ts | TypeScript |
MethodDeclaration | /**
* Conditionally writes text.
* @param condition - Condition to evaluate.
* @param text - Text to write if the condition is true.
*/
conditionalWrite(condition: boolean | undefined, text: string): this; | codebyravi/uniquiki | node_modules/code-block-writer/dist/code-block-writer.d.ts | TypeScript |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.