type stringclasses 7
values | content stringlengths 4 9.55k | repo stringlengths 7 96 | path stringlengths 4 178 | language stringclasses 1
value |
|---|---|---|---|---|
ArrowFunction |
() => {
util.testModule`
import foo = require("./foo/bar");
foo;
`
.setOptions({ module: ts.ModuleKind.CommonJS })
.tap(expectToRequire("foo.bar"));
} | chrisd08/TypeScriptToLua | test/unit/modules/resolution.spec.ts | TypeScript |
InterfaceDeclaration |
export interface Categoria extends Document {
readonly categoria: string;
descricao: string;
eventos: Array<Evento>
jogadores: Array<Jogador>
} | Luis2223/api-smartranking | src/categorias/interface/categoria.interface.ts | TypeScript |
InterfaceDeclaration |
export interface Evento {
nome: string,
operacao: string,
valor: number
} | Luis2223/api-smartranking | src/categorias/interface/categoria.interface.ts | TypeScript |
ArrowFunction |
() =>
this.setState({
// @ts-ignore
totalPages: Math.ceil(this.app.state.numCountries/ PAGE_SIZE)
}) | eliyacobov1/COVID19-web-app | client/src/components/Pagination.tsx | TypeScript |
ArrowFunction |
async (pageNum: number) => {
const app = this.app
app.restoreTickets() // restore hidden tickets before moving to next page
app.setState({
countries: await this.api.getPage(pageNum, app.state.search),
numCountries: (await this.api.getCountries(app.state.search)).length
... | eliyacobov1/COVID19-web-app | client/src/components/Pagination.tsx | TypeScript |
ArrowFunction |
() => {
const totalPages = this.state.totalPages;
const currentPage = this.state.currentPage;
let pageNumbers = [FIRST_PAGE];
if(currentPage === FIRST_PAGE){
pageNumbers.push(...[SECOND_PAGE, RIGHT_PAGE]);
}
else if (currentPage === SECOND_PAGE){
... | eliyacobov1/COVID19-web-app | client/src/components/Pagination.tsx | TypeScript |
ArrowFunction |
(page: number, index: number) => {
if (page === LEFT_PAGE) return (
<li key={index} className="page-item">
<button className="page-link" aria-label="Previous"
onClick={() => this.switchPage(curre... | eliyacobov1/COVID19-web-app | client/src/components/Pagination.tsx | TypeScript |
ClassDeclaration | // @ts-ignore
/**
* Pagination component
*/
export class Pagination extends React.Component<{api: ApiClient, app: App},
PaginationState> {
private api: ApiClient;
private readonly app: App;
constructor(props: { api: ApiClient, app: App }) {
super(props);
const {api, app} = props;
... | eliyacobov1/COVID19-web-app | client/src/components/Pagination.tsx | TypeScript |
TypeAliasDeclaration |
export type PaginationState = {
currentPage: number;
totalPages: number;
} | eliyacobov1/COVID19-web-app | client/src/components/Pagination.tsx | TypeScript |
MethodDeclaration | /**
* trigger a render after the numTicket field of app
* is defined (during the app.componentDidMount() call)
*/
componentDidMount() {
this.app.componentDidMount().then(() =>
this.setState({
// @ts-ignore
totalPages: Math.ceil(this.app.state.numCountries/ PAGE... | eliyacobov1/COVID19-web-app | client/src/components/Pagination.tsx | TypeScript |
MethodDeclaration |
render() {
const {currentPage} = this.state;
const pages = this.fetchPageNumbers();
return (
<Fragment>
<nav aria-label="Countries Pagination">
<ul className="pagination">
{pages.map((page: number, index: number) => {
... | eliyacobov1/COVID19-web-app | client/src/components/Pagination.tsx | TypeScript |
ArrowFunction |
() => redirect(targetUrl) | bnjmnt4n/neh | src/Handler.ts | TypeScript |
ArrowFunction |
([a], [b]) => a.localeCompare(b) | bnjmnt4n/neh | src/Handler.ts | TypeScript |
ArrowFunction |
([command, handler]) => [command, handler.doc] | bnjmnt4n/neh | src/Handler.ts | TypeScript |
ClassDeclaration |
export abstract class Handler {
abstract readonly doc: DocType;
abstract handle(tokens: Token[]): Promise<Response>;
} | bnjmnt4n/neh | src/Handler.ts | TypeScript |
ClassDeclaration |
export class FunctionHandler extends Handler {
doc: DocString;
private handlerFn: HandlerFn;
constructor(docstring: DocString, handlerFn: HandlerFn) {
super();
this.doc = docstring;
this.handlerFn = handlerFn;
}
async handle(tokens: Token[]): Promise<Response> {
return await this.handlerFn... | bnjmnt4n/neh | src/Handler.ts | TypeScript |
ClassDeclaration |
export class RedirectHandler extends FunctionHandler {
constructor(docstring: DocString, targetUrl: string) {
super(docstring, () => redirect(targetUrl));
}
} | bnjmnt4n/neh | src/Handler.ts | TypeScript |
ClassDeclaration |
export class CommandHandler extends Handler {
private handlers: { [command: string]: Handler } = {};
private defaultHandler?: Handler;
private nothingHandler?: Handler;
get doc(): DocObject {
const docObject: DocObject = Object.fromEntries(
Object.entries(this.handlers)
.sort(([a], [b]) => a... | bnjmnt4n/neh | src/Handler.ts | TypeScript |
TypeAliasDeclaration |
export type DocString = string; | bnjmnt4n/neh | src/Handler.ts | TypeScript |
TypeAliasDeclaration |
export type DocObject = { [command: string]: DocType }; | bnjmnt4n/neh | src/Handler.ts | TypeScript |
TypeAliasDeclaration |
export type DocType = DocString | DocObject; | bnjmnt4n/neh | src/Handler.ts | TypeScript |
TypeAliasDeclaration |
export type Token = string; | bnjmnt4n/neh | src/Handler.ts | TypeScript |
TypeAliasDeclaration |
export type HandlerFn = (tokens: Token[]) => Response | Promise<Response>; | bnjmnt4n/neh | src/Handler.ts | TypeScript |
MethodDeclaration |
abstract handle(tokens: Token[]): Promise<Response>; | bnjmnt4n/neh | src/Handler.ts | TypeScript |
MethodDeclaration |
async handle(tokens: Token[]): Promise<Response> {
return await this.handlerFn(tokens);
} | bnjmnt4n/neh | src/Handler.ts | TypeScript |
MethodDeclaration |
addHandler(command: string, handler: Handler): void {
this.handlers[command] = handler;
} | bnjmnt4n/neh | src/Handler.ts | TypeScript |
MethodDeclaration |
setDefaultHandler(handler: Handler): void {
this.defaultHandler = handler;
} | bnjmnt4n/neh | src/Handler.ts | TypeScript |
MethodDeclaration |
setNothingHandler(handler: Handler): void {
this.nothingHandler = handler;
} | bnjmnt4n/neh | src/Handler.ts | TypeScript |
MethodDeclaration |
async handle(tokens: Token[]): Promise<Response> {
if (tokens.length === 0) {
if (this.nothingHandler) {
return await this.nothingHandler.handle(tokens);
}
} else {
const [command, ...otherTokens] = tokens;
const lowerCommand = command.toLowerCase();
if (lowerCommand in th... | bnjmnt4n/neh | src/Handler.ts | TypeScript |
ArrowFunction |
result => {
debugger ;
// this.list = result;
// this.item = { name: 'huda' };
} | MaNashaat/ICSD | .history/src/app/sorting/inquiry/inquiry.component_20190319224941.ts | TypeScript |
ArrowFunction |
() => {
doc.fromHTML(prtContent, 15, 15, {
'width': 190,
'elementHandlers': specialElememtHandlers
}, function () {
window.open(doc.output('bloburl'), '_blank');
});
} | MaNashaat/ICSD | .history/src/app/sorting/inquiry/inquiry.component_20190319224941.ts | TypeScript |
ClassDeclaration |
@Component({
selector: 'inquiry-page',
templateUrl: './inquiry.component.html',
// styleUrls: ['./deliveries-and-returns.component.scss'],
animations: [routerTransition()],
providers: []
})
export class InquiryComponent implements OnInit {
@ViewChild('detailsForm') public detailsForm: NgForm;
item = {};
... | MaNashaat/ICSD | .history/src/app/sorting/inquiry/inquiry.component_20190319224941.ts | TypeScript |
MethodDeclaration |
search() {
this.serviceApi.CustomerInquery(this.item).subscribe(result => {
debugger ;
// this.list = result;
// this.item = { name: 'huda' };
});
} | MaNashaat/ICSD | .history/src/app/sorting/inquiry/inquiry.component_20190319224941.ts | TypeScript |
MethodDeclaration |
print() {
const doc = new jsPDF();
const specialElememtHandlers = {
'#editor': function (element, renderer) {
return true;
}
};
const prtContent = document.getElementById('user');
setTimeout(() => {
doc.fromHTML(prtContent, 15, 15, {
'width': 190,
'elementHandlers': specialEle... | MaNashaat/ICSD | .history/src/app/sorting/inquiry/inquiry.component_20190319224941.ts | TypeScript |
InterfaceDeclaration | /** @name Bid */
export interface Bid extends Struct {
readonly who: AccountId;
readonly kind: BidKind;
readonly value: Balance;
} | AxiaSolar-Js/api | packages/types/src/interfaces/society/types.ts | TypeScript |
InterfaceDeclaration | /** @name BidKind */
export interface BidKind extends Enum {
readonly isDeposit: boolean;
readonly asDeposit: Balance;
readonly isVouch: boolean;
readonly asVouch: ITuple<[AccountId, Balance]>;
} | AxiaSolar-Js/api | packages/types/src/interfaces/society/types.ts | TypeScript |
InterfaceDeclaration | /** @name SocietyJudgement */
export interface SocietyJudgement extends Enum {
readonly isRebid: boolean;
readonly isReject: boolean;
readonly isApprove: boolean;
} | AxiaSolar-Js/api | packages/types/src/interfaces/society/types.ts | TypeScript |
InterfaceDeclaration | /** @name SocietyVote */
export interface SocietyVote extends Enum {
readonly isSkeptic: boolean;
readonly isReject: boolean;
readonly isApprove: boolean;
} | AxiaSolar-Js/api | packages/types/src/interfaces/society/types.ts | TypeScript |
InterfaceDeclaration | /** @name StrikeCount */
export interface StrikeCount extends u32 {} | AxiaSolar-Js/api | packages/types/src/interfaces/society/types.ts | TypeScript |
InterfaceDeclaration | /** @name VouchingStatus */
export interface VouchingStatus extends Enum {
readonly isVouching: boolean;
readonly isBanned: boolean;
} | AxiaSolar-Js/api | packages/types/src/interfaces/society/types.ts | TypeScript |
TypeAliasDeclaration |
export type PHANTOM_SOCIETY = 'society'; | AxiaSolar-Js/api | packages/types/src/interfaces/society/types.ts | TypeScript |
FunctionDeclaration |
function CreateWindowStub() {
return {
id: 0,
setMenuBarVisibility: jest.fn(),
setAutoHideMenuBar: jest.fn(),
setIgnoreMouseEvents: jest.fn(),
setTitle: jest.fn(),
reload: jest.fn(),
isDestroyed: jest.fn(() => false),
setTouchBar: jest.fn(),
};
} | FAWLKTZ/fiddle | tests/mocks/electron.ts | TypeScript |
ArrowFunction |
() => ({
removedItems: [],
}) | FAWLKTZ/fiddle | tests/mocks/electron.ts | TypeScript |
ArrowFunction |
(name: string) => {
if (name === 'userData') return '/Users/fake-user';
if (name === 'home') return `~`;
return '/test-path';
} | FAWLKTZ/fiddle | tests/mocks/electron.ts | TypeScript |
ArrowFunction |
(cb) => cb() | FAWLKTZ/fiddle | tests/mocks/electron.ts | TypeScript |
ArrowFunction |
(_opts, cb) => cb() | FAWLKTZ/fiddle | tests/mocks/electron.ts | TypeScript |
ArrowFunction |
(...args: Array<any>) => new MockNativeImage(...args) | FAWLKTZ/fiddle | tests/mocks/electron.ts | TypeScript |
ArrowFunction |
() => 'content' | FAWLKTZ/fiddle | tests/mocks/electron.ts | TypeScript |
ClassDeclaration |
class MockNotification extends EventEmitter {
public readonly show = jest.fn();
constructor(public readonly options: any) {
super();
createdNotifications.push(this);
}
} | FAWLKTZ/fiddle | tests/mocks/electron.ts | TypeScript |
ClassDeclaration |
class Screen extends EventEmitter {
public readonly getDisplayMatching = jest.fn();
public readonly getDisplayNearestPoint = jest.fn();
public readonly getPrimaryDisplay = jest.fn();
public readonly getCursorScreenPoint = jest.fn();
} | FAWLKTZ/fiddle | tests/mocks/electron.ts | TypeScript |
ClassDeclaration |
class MockAutoUpdater extends EventEmitter {
public readonly quitAndInstall = jest.fn();
} | FAWLKTZ/fiddle | tests/mocks/electron.ts | TypeScript |
ClassDeclaration |
export class MockMenu {
public static readonly setApplicationMenu = jest.fn();
public static readonly sendActionToFirstResponder = jest.fn();
public static readonly getApplicationMenu = jest.fn();
public static readonly buildFromTemplate = jest.fn();
public readonly popup = jest.fn();
public readonly close... | FAWLKTZ/fiddle | tests/mocks/electron.ts | TypeScript |
ClassDeclaration |
export class MockNativeImage {
public readonly args: Array<any>;
constructor(...args: Array<any>) {
this.args = args;
}
} | FAWLKTZ/fiddle | tests/mocks/electron.ts | TypeScript |
ClassDeclaration |
export class MockMenuItem {
public enabled: boolean;
public visible: boolean;
public label: string;
public type: string;
public click: (
menuItem: Electron.MenuItem,
browserWindow: Electron.BrowserWindow | undefined,
event: KeyboardEvent,
) => void;
constructor(options: Electron.MenuItemCons... | FAWLKTZ/fiddle | tests/mocks/electron.ts | TypeScript |
ClassDeclaration |
export class MockIPC extends EventEmitter {
public send: any;
constructor() {
super();
this.send = jest.fn();
}
} | FAWLKTZ/fiddle | tests/mocks/electron.ts | TypeScript |
ClassDeclaration |
class MockTouchBar {
public static TouchBarButton = jest.fn();
public static TouchBarScrubber = jest.fn();
public static TouchBarSpacer = jest.fn();
public static TouchBarLabel = jest.fn();
} | FAWLKTZ/fiddle | tests/mocks/electron.ts | TypeScript |
MethodDeclaration |
public append(mi: MockMenuItem) {
this.items.push(mi);
} | FAWLKTZ/fiddle | tests/mocks/electron.ts | TypeScript |
MethodDeclaration |
public insert(pos: number, mi: MockMenuItem) {
this.items = this.items.splice(pos, 0, mi);
} | FAWLKTZ/fiddle | tests/mocks/electron.ts | TypeScript |
ArrowFunction |
() => CustomerAddress | tam4392/KovyMart | src/modules/customer/entities/customer.entity.ts | TypeScript |
ArrowFunction |
(customerAddress) => customerAddress.customer | tam4392/KovyMart | src/modules/customer/entities/customer.entity.ts | TypeScript |
ArrowFunction |
(order) => order.customer | tam4392/KovyMart | src/modules/customer/entities/customer.entity.ts | TypeScript |
ArrowFunction |
() => ProductComment | tam4392/KovyMart | src/modules/customer/entities/customer.entity.ts | TypeScript |
ArrowFunction |
(productComment) => productComment.customer | tam4392/KovyMart | src/modules/customer/entities/customer.entity.ts | TypeScript |
ClassDeclaration |
@Entity()
export class Customer {
@PrimaryGeneratedColumn()
id: number;
@Column({ nullable: true })
firstName: string;
@Column({ nullable: true })
lastName: string;
@Column({ unique: true })
email: string;
@Column()
password: string;
@Column({ nullable: true })
phone: string;
@Column({ ... | tam4392/KovyMart | src/modules/customer/entities/customer.entity.ts | TypeScript |
MethodDeclaration |
@BeforeInsert()
async checkBeforeCreate() {
this.createdAt = new Date();
this.updatedAt = new Date();
const salt = await bcrypt.genSalt();
const hashPass = await bcrypt.hash(this.password, salt);
this.password = hashPass;
} | tam4392/KovyMart | src/modules/customer/entities/customer.entity.ts | TypeScript |
ArrowFunction |
(column) => {
this.onColumnClick.emit(column);
} | bkimu/ng2-amrs | src/app/hiv-care-lib/moh-731-report/moh-731-tabular.component.ts | TypeScript |
ClassDeclaration |
@Component({
selector: 'moh-731-tabular',
templateUrl: 'moh-731-tabular.component.html',
// changeDetection: ChangeDetectionStrategy.OnPush
})
export class Moh731TabularComponent implements OnInit {
public gridOptions: any = {
columnDefs: []
};
@Output() onColumnClick = new EventEmitte... | bkimu/ng2-amrs | src/app/hiv-care-lib/moh-731-report/moh-731-tabular.component.ts | TypeScript |
MethodDeclaration |
setColumns(sectionsData: Array<any>) {
let defs = [];
defs.push({
headerName: 'Location',
field: 'location',
pinned: 'left'
});
for (let i = 0; i < sectionsData.length; i++) {
let section = sectionsData[i];
let created: any = {... | bkimu/ng2-amrs | src/app/hiv-care-lib/moh-731-report/moh-731-tabular.component.ts | TypeScript |
FunctionDeclaration |
export function getFreqFunction(min: number, max: number) {
const FREQ_MULT = (FREQ_MAX - FREQ_MIN) / (max - min);
const FREQ_BASE = FREQ_MIN - min * FREQ_MULT;
return (v: number) => v * FREQ_MULT + FREQ_BASE;
} | Boeny/react-three-2d | app/ts/components/audio.ts | TypeScript |
ArrowFunction |
(v: number) => v * FREQ_MULT + FREQ_BASE | Boeny/react-three-2d | app/ts/components/audio.ts | TypeScript |
ClassDeclaration |
export class AudioSource extends React.Component {
componentDidMount() {
window.AudioContext = window.AudioContext || window.webkitAudioContext || null;
if (!window.AudioContext) {
console.warn('no audio context!');
return;
}
const context = new AudioContext... | Boeny/react-three-2d | app/ts/components/audio.ts | TypeScript |
InterfaceDeclaration |
interface IStore {
context: AudioContext | null;
source: OscillatorNode | null;
} | Boeny/react-three-2d | app/ts/components/audio.ts | TypeScript |
MethodDeclaration |
componentDidMount() {
window.AudioContext = window.AudioContext || window.webkitAudioContext || null;
if (!window.AudioContext) {
console.warn('no audio context!');
return;
}
const context = new AudioContext();
Store.context = context;
Store.sourc... | Boeny/react-three-2d | app/ts/components/audio.ts | TypeScript |
MethodDeclaration |
render() {
return null;
} | Boeny/react-three-2d | app/ts/components/audio.ts | TypeScript |
InterfaceDeclaration |
interface IUser extends mongoose.Document {
username: string;
password: string;
email: string;
role: string;
generateHash(password);
validPassword(password);
} | zingsight/zingsight-dashboard-v1 | server/models/IUser.ts | TypeScript |
ArrowFunction |
c => ({ label: c.name, value: c.code }) | 2impulse/saleor-dashboard | src/components/SingleAutocompleteSelectField/SingleAutocompleteSelectField.stories.tsx | TypeScript |
ArrowFunction |
({ allowCustomValues, emptyOption, enableLoadMore }) => {
const [displayValue, setDisplayValue] = React.useState(suggestions[0].label);
return (
<Form initial={{ country: suggestions[0].value }} | 2impulse/saleor-dashboard | src/components/SingleAutocompleteSelectField/SingleAutocompleteSelectField.stories.tsx | TypeScript |
ArrowFunction |
() => (
<SingleAutocompleteSelectFieldContent {...contentProps} />
) | 2impulse/saleor-dashboard | src/components/SingleAutocompleteSelectField/SingleAutocompleteSelectField.stories.tsx | TypeScript |
ArrowFunction |
() => (
<SingleAutocompleteSelectFieldContent
{...contentProps} | 2impulse/saleor-dashboard | src/components/SingleAutocompleteSelectField/SingleAutocompleteSelectField.stories.tsx | TypeScript |
ArrowFunction |
() => (
<SingleAutocompleteSelectFieldContent {...contentProps} | 2impulse/saleor-dashboard | src/components/SingleAutocompleteSelectField/SingleAutocompleteSelectField.stories.tsx | TypeScript |
ArrowFunction |
() => <Story />)
.add("interactive with custom option", () => (
<Story allowCustomValues={true} />
) | 2impulse/saleor-dashboard | src/components/SingleAutocompleteSelectField/SingleAutocompleteSelectField.stories.tsx | TypeScript |
ArrowFunction |
() => (
<Story allowCustomValues={true} /> | 2impulse/saleor-dashboard | src/components/SingleAutocompleteSelectField/SingleAutocompleteSelectField.stories.tsx | TypeScript |
ArrowFunction |
() => <Story emptyOption | 2impulse/saleor-dashboard | src/components/SingleAutocompleteSelectField/SingleAutocompleteSelectField.stories.tsx | TypeScript |
ArrowFunction |
() => <Story enableLoadMore | 2impulse/saleor-dashboard | src/components/SingleAutocompleteSelectField/SingleAutocompleteSelectField.stories.tsx | TypeScript |
ClassDeclaration |
@Component({
selector: 'app-edit',
templateUrl: './edit.component.html',
styleUrls: ['./edit.component.css']
})
export class EditComponent implements OnInit {
product: Product;
key: string;
constructor(private ps: ProductsService) { }
ngOnInit(): void {
}
onSubmit(){
}
} | rafatrinity/crud-angular-firebase | crud/src/app/components/edit/edit.component.ts | TypeScript |
MethodDeclaration |
onSubmit(){
} | rafatrinity/crud-angular-firebase | crud/src/app/components/edit/edit.component.ts | TypeScript |
MethodDeclaration | // -------------------------------------------------------------------------
// Public Implemented Methods
// -------------------------------------------------------------------------
/**
* Gets generated sql query without parameters being replaced.
*/
getQuery(): string {
const sql = this.createDelet... | basharh/typeorm | src/query-builder/DeleteQueryBuilder.ts | TypeScript |
MethodDeclaration | /**
* Executes sql generated by query builder and returns raw database results.
*/
async execute(): Promise<DeleteResult> {
const [sql, parameters] = this.getQueryAndParameters();
const queryRunner = this.obtainQueryRunner();
let transactionStartedByUs = false;
try {
... | basharh/typeorm | src/query-builder/DeleteQueryBuilder.ts | TypeScript |
MethodDeclaration | // -------------------------------------------------------------------------
// Public Methods
// -------------------------------------------------------------------------
/**
* Specifies FROM which entity's table select/update/delete will be executed.
* Also sets a main string alias of the selection data.
... | basharh/typeorm | src/query-builder/DeleteQueryBuilder.ts | TypeScript |
MethodDeclaration | /**
* Sets WHERE condition in the query builder.
* If you had previously WHERE expression defined,
* calling this function will override previously set WHERE conditions.
* Additionally you can add parameters used in where expression.
*/
where(
where:
| Brackets
|... | basharh/typeorm | src/query-builder/DeleteQueryBuilder.ts | TypeScript |
MethodDeclaration | /**
* Adds new AND WHERE condition in the query builder.
* Additionally you can add parameters used in where expression.
*/
andWhere(
where: Brackets | string | ((qb: this) => string),
parameters?: ObjectLiteral
): this {
this.expressionMap.wheres.push({
type: "and... | basharh/typeorm | src/query-builder/DeleteQueryBuilder.ts | TypeScript |
MethodDeclaration | /**
* Adds new OR WHERE condition in the query builder.
* Additionally you can add parameters used in where expression.
*/
orWhere(
where: Brackets | string | ((qb: this) => string),
parameters?: ObjectLiteral
): this {
this.expressionMap.wheres.push({
type: "or",
... | basharh/typeorm | src/query-builder/DeleteQueryBuilder.ts | TypeScript |
MethodDeclaration | /**
* Adds new AND WHERE with conditions for the given ids.
*/
whereInIds(ids: any | any[]): this {
return this.where(this.createWhereIdsExpression(ids));
} | basharh/typeorm | src/query-builder/DeleteQueryBuilder.ts | TypeScript |
MethodDeclaration | /**
* Adds new AND WHERE with conditions for the given ids.
*/
andWhereInIds(ids: any | any[]): this {
return this.andWhere(this.createWhereIdsExpression(ids));
} | basharh/typeorm | src/query-builder/DeleteQueryBuilder.ts | TypeScript |
MethodDeclaration | /**
* Adds new OR WHERE with conditions for the given ids.
*/
orWhereInIds(ids: any | any[]): this {
return this.orWhere(this.createWhereIdsExpression(ids));
} | basharh/typeorm | src/query-builder/DeleteQueryBuilder.ts | TypeScript |
MethodDeclaration | /**
* Optional returning/output clause.
* This will return given column values.
*/
output(columns: string[]): this; | basharh/typeorm | src/query-builder/DeleteQueryBuilder.ts | TypeScript |
MethodDeclaration | /**
* Optional returning/output clause.
* Returning is a SQL string containing returning statement.
*/
output(output: string): this; | basharh/typeorm | src/query-builder/DeleteQueryBuilder.ts | TypeScript |
MethodDeclaration | /**
* Optional returning/output clause.
*/
output(output: string | string[]): this; | basharh/typeorm | src/query-builder/DeleteQueryBuilder.ts | TypeScript |
MethodDeclaration | /**
* Optional returning/output clause.
*/
output(output: string | string[]): this {
return this.returning(output);
} | basharh/typeorm | src/query-builder/DeleteQueryBuilder.ts | TypeScript |
MethodDeclaration | /**
* Optional returning/output clause.
* This will return given column values.
*/
returning(columns: string[]): this; | basharh/typeorm | src/query-builder/DeleteQueryBuilder.ts | TypeScript |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.