type stringclasses 7
values | content stringlengths 4 9.55k | repo stringlengths 7 96 | path stringlengths 4 178 | language stringclasses 1
value |
|---|---|---|---|---|
MethodDeclaration |
private updateForExecutionState() {
if (!this.element) {
return;
}
const internalMetadata = this.element.internalMetadata;
this.cellEditable.set(!this.notebookEditor.isReadOnly);
const exeState = this._notebookExecutionStateService.getCellExecution(this.element.uri);
if (this.element instanceof Markup... | hermannloose/vscode | src/vs/workbench/contrib/notebook/browser/view/cellParts/cellContextKeys.ts | TypeScript |
MethodDeclaration |
private updateForEditState() {
if (!this.element) {
return;
}
if (this.element instanceof MarkupCellViewModel) {
this.markdownEditMode.set(this.element.getEditState() === CellEditState.Editing);
} else {
this.markdownEditMode.set(false);
}
} | hermannloose/vscode | src/vs/workbench/contrib/notebook/browser/view/cellParts/cellContextKeys.ts | TypeScript |
MethodDeclaration |
private updateForCollapseState() {
if (!this.element) {
return;
}
this.cellContentCollapsed.set(!!this.element.isInputCollapsed);
this.cellOutputCollapsed.set(!!this.element.isOutputCollapsed);
} | hermannloose/vscode | src/vs/workbench/contrib/notebook/browser/view/cellParts/cellContextKeys.ts | TypeScript |
MethodDeclaration |
private updateForOutputs() {
if (this.element instanceof CodeCellViewModel) {
this.cellHasOutputs.set(this.element.outputsViewModels.length > 0);
} else {
this.cellHasOutputs.set(false);
}
} | hermannloose/vscode | src/vs/workbench/contrib/notebook/browser/view/cellParts/cellContextKeys.ts | TypeScript |
FunctionDeclaration |
export declare function useDispatcher(dis: disArgs): void; | Akshat-Singh/BuildMyTrip | node_modules/@storex/react/lib/react/useDispatcher.d.ts | TypeScript |
TypeAliasDeclaration |
declare type disArgs = Dispatcher | DispatcherRegisterOptions | (Dispatcher | DispatcherRegisterOptions)[]; | Akshat-Singh/BuildMyTrip | node_modules/@storex/react/lib/react/useDispatcher.d.ts | TypeScript |
ClassDeclaration |
export class ImportDeclarationStructurePrinter extends NodePrinter<OptionalKind<ImportDeclarationStructure>> {
private readonly multipleWriter = new NewLineFormattingStructuresPrinter(this);
printTexts(writer: CodeBlockWriter, structures: ReadonlyArray<OptionalKind<ImportDeclarationStructure>> | undefined) {
... | IKatsuba/ts-morph | packages/ts-morph/src/structurePrinters/module/ImportDeclarationStructurePrinter.ts | TypeScript |
MethodDeclaration |
printTexts(writer: CodeBlockWriter, structures: ReadonlyArray<OptionalKind<ImportDeclarationStructure>> | undefined) {
this.multipleWriter.printText(writer, structures);
} | IKatsuba/ts-morph | packages/ts-morph/src/structurePrinters/module/ImportDeclarationStructurePrinter.ts | TypeScript |
MethodDeclaration |
protected printTextInternal(writer: CodeBlockWriter, structure: OptionalKind<ImportDeclarationStructure>) {
const hasNamedImport = structure.namedImports != null && structure.namedImports.length > 0;
// validation
if (hasNamedImport && structure.namespaceImport != null)
throw new er... | IKatsuba/ts-morph | packages/ts-morph/src/structurePrinters/module/ImportDeclarationStructurePrinter.ts | TypeScript |
FunctionDeclaration | /**
* This method is complementary with the loadHistory method. Make sure that any chances to the
* format of stored history is reflected in changes to that method.
*/
export function storeHistory(
notebookModel: INotebookModel,
executionLog: ExecutionLogSlicer
) {
let cellExecutionsJson: JSONArray = [];
fo... | MeRajat/gather | src/persistence/store.ts | TypeScript |
InterfaceDeclaration |
interface CellExecutionJson extends JSONObject {
executionTime: string;
cell: CellJson;
} | MeRajat/gather | src/persistence/store.ts | TypeScript |
InterfaceDeclaration |
interface CellJson extends JSONObject {
id: string;
persistentId: string;
executionEventId: string;
executionCount: number;
hasError: boolean;
isCode: boolean;
text: string;
gathered: boolean;
outputs: nbformat.IOutput[];
} | MeRajat/gather | src/persistence/store.ts | TypeScript |
ArrowFunction |
async (name: string, type: string) => {
return await backoffFetch(
`https://dns.google/resolve?name=${encodeURIComponent(name)}&type=${encodeURIComponent(type)}`,
)
} | JakeMakesStuff/dns-tool | src/dns-lookup/utils/googleDNS.ts | TypeScript |
ArrowFunction |
() => DirPickerComponent | darfichraus/darfichraus-frontend | src/app/modules/core/components/dir-picker/dir-picker.component.ts | TypeScript |
ArrowFunction |
() => {
this.filterItems();
} | darfichraus/darfichraus-frontend | src/app/modules/core/components/dir-picker/dir-picker.component.ts | TypeScript |
ArrowFunction |
(val) => {
this.propagateChange(val);
} | darfichraus/darfichraus-frontend | src/app/modules/core/components/dir-picker/dir-picker.component.ts | TypeScript |
ArrowFunction |
(item) => item.name.toLowerCase().indexOf(search) > -1 | darfichraus/darfichraus-frontend | src/app/modules/core/components/dir-picker/dir-picker.component.ts | TypeScript |
ClassDeclaration |
@Component({
selector: 'dir-picker',
templateUrl: './dir-picker.component.html',
styleUrls: ['./dir-picker.component.scss'],
providers: [
{
provide: NG_VALUE_ACCESSOR,
useExisting: forwardRef(() => DirPickerComponent),
multi: true,
},
],
})
export class DirPickerComponent implements... | darfichraus/darfichraus-frontend | src/app/modules/core/components/dir-picker/dir-picker.component.ts | TypeScript |
InterfaceDeclaration |
export interface Item {
name: string;
value: string;
} | darfichraus/darfichraus-frontend | src/app/modules/core/components/dir-picker/dir-picker.component.ts | TypeScript |
MethodDeclaration |
ngOnInit(): void {
this.itemCtrl.valueChanges.subscribe((val) => {
this.propagateChange(val);
});
} | darfichraus/darfichraus-frontend | src/app/modules/core/components/dir-picker/dir-picker.component.ts | TypeScript |
MethodDeclaration |
ngOnDestroy(): void {
this._onDestroy.next();
this._onDestroy.complete();
} | darfichraus/darfichraus-frontend | src/app/modules/core/components/dir-picker/dir-picker.component.ts | TypeScript |
MethodDeclaration |
writeValue(value: any): void {
console.log('writeValue');
if (value !== undefined) {
console.log(this.itemCtrl.value);
this.itemCtrl.setValue(value);
console.log(this.itemCtrl.value);
}
} | darfichraus/darfichraus-frontend | src/app/modules/core/components/dir-picker/dir-picker.component.ts | TypeScript |
MethodDeclaration |
registerOnChange(fn: any): void {
this.propagateChange = fn;
} | darfichraus/darfichraus-frontend | src/app/modules/core/components/dir-picker/dir-picker.component.ts | TypeScript |
MethodDeclaration |
registerOnTouched(): void {} | darfichraus/darfichraus-frontend | src/app/modules/core/components/dir-picker/dir-picker.component.ts | TypeScript |
MethodDeclaration |
protected filterItems(): void {
if (!this.myItems) {
return;
}
let search: string = this.itemFilterCtrl.value;
if (!search) {
this.filteredItems.next(this.myItems.slice());
return;
} else {
search = search.toLowerCase();
}
this.filteredItems.next(
this.myItem... | darfichraus/darfichraus-frontend | src/app/modules/core/components/dir-picker/dir-picker.component.ts | TypeScript |
ArrowFunction |
() => {
let stack: Stack;
let stream: kinesis.Stream;
let streamArn: any;
beforeEach(() => {
stack = new Stack();
stream = new kinesis.Stream(stack, 'MyStream');
streamArn = { 'Fn::GetAtt': ['MyStream5C050E93', 'Arn'] };
});
describe('when added to an event rule as a target', () => {
let ... | 1davidmichael/aws-cdk | packages/@aws-cdk/aws-events-targets/test/kinesis/kinesis-stream.test.ts | TypeScript |
ArrowFunction |
() => {
stack = new Stack();
stream = new kinesis.Stream(stack, 'MyStream');
streamArn = { 'Fn::GetAtt': ['MyStream5C050E93', 'Arn'] };
} | 1davidmichael/aws-cdk | packages/@aws-cdk/aws-events-targets/test/kinesis/kinesis-stream.test.ts | TypeScript |
ArrowFunction |
() => {
let rule: events.Rule;
beforeEach(() => {
rule = new events.Rule(stack, 'rule', {
schedule: events.Schedule.expression('rate(1 minute)'),
});
});
describe('with default settings', () => {
beforeEach(() => {
rule.addTarget(new targets.KinesisStream(stream));
... | 1davidmichael/aws-cdk | packages/@aws-cdk/aws-events-targets/test/kinesis/kinesis-stream.test.ts | TypeScript |
ArrowFunction |
() => {
rule = new events.Rule(stack, 'rule', {
schedule: events.Schedule.expression('rate(1 minute)'),
});
} | 1davidmichael/aws-cdk | packages/@aws-cdk/aws-events-targets/test/kinesis/kinesis-stream.test.ts | TypeScript |
ArrowFunction |
() => {
beforeEach(() => {
rule.addTarget(new targets.KinesisStream(stream));
});
test("adds the stream's ARN and role to the targets of the rule", () => {
expect(stack).to(haveResource('AWS::Events::Rule', {
Targets: [
{
Arn: streamArn,
... | 1davidmichael/aws-cdk | packages/@aws-cdk/aws-events-targets/test/kinesis/kinesis-stream.test.ts | TypeScript |
ArrowFunction |
() => {
rule.addTarget(new targets.KinesisStream(stream));
} | 1davidmichael/aws-cdk | packages/@aws-cdk/aws-events-targets/test/kinesis/kinesis-stream.test.ts | TypeScript |
ArrowFunction |
() => {
expect(stack).to(haveResource('AWS::Events::Rule', {
Targets: [
{
Arn: streamArn,
Id: 'Target0',
RoleArn: { 'Fn::GetAtt': ['MyStreamEventsRole5B6CC6AF', 'Arn'] },
},
],
}));
} | 1davidmichael/aws-cdk | packages/@aws-cdk/aws-events-targets/test/kinesis/kinesis-stream.test.ts | TypeScript |
ArrowFunction |
() => {
expect(stack).to(haveResource('AWS::IAM::Policy', {
PolicyDocument: {
Statement: [
{
Action: ['kinesis:PutRecord', 'kinesis:PutRecords'],
Effect: 'Allow',
Resource: streamArn,
},
],
... | 1davidmichael/aws-cdk | packages/@aws-cdk/aws-events-targets/test/kinesis/kinesis-stream.test.ts | TypeScript |
ArrowFunction |
() => {
beforeEach(() => {
rule.addTarget(new targets.KinesisStream(stream, {
partitionKeyPath: events.EventField.eventId,
}));
});
test('sets the partition key path', () => {
expect(stack).to(haveResourceLike('AWS::Events::Rule', {
Targets: [
... | 1davidmichael/aws-cdk | packages/@aws-cdk/aws-events-targets/test/kinesis/kinesis-stream.test.ts | TypeScript |
ArrowFunction |
() => {
rule.addTarget(new targets.KinesisStream(stream, {
partitionKeyPath: events.EventField.eventId,
}));
} | 1davidmichael/aws-cdk | packages/@aws-cdk/aws-events-targets/test/kinesis/kinesis-stream.test.ts | TypeScript |
ArrowFunction |
() => {
expect(stack).to(haveResourceLike('AWS::Events::Rule', {
Targets: [
{
Arn: streamArn,
Id: 'Target0',
RoleArn: { 'Fn::GetAtt': ['MyStreamEventsRole5B6CC6AF', 'Arn'] },
KinesisParameters: {
PartitionKeyPath: '$.... | 1davidmichael/aws-cdk | packages/@aws-cdk/aws-events-targets/test/kinesis/kinesis-stream.test.ts | TypeScript |
ArrowFunction |
() => {
beforeEach(() => {
rule.addTarget(new targets.KinesisStream(stream, {
message: events.RuleTargetInput.fromText('fooBar'),
}));
});
test('sets the input', () => {
expect(stack).to(haveResourceLike('AWS::Events::Rule', {
Targets: [
{
... | 1davidmichael/aws-cdk | packages/@aws-cdk/aws-events-targets/test/kinesis/kinesis-stream.test.ts | TypeScript |
ArrowFunction |
() => {
rule.addTarget(new targets.KinesisStream(stream, {
message: events.RuleTargetInput.fromText('fooBar'),
}));
} | 1davidmichael/aws-cdk | packages/@aws-cdk/aws-events-targets/test/kinesis/kinesis-stream.test.ts | TypeScript |
ArrowFunction |
() => {
expect(stack).to(haveResourceLike('AWS::Events::Rule', {
Targets: [
{
Arn: streamArn,
Id: 'Target0',
Input: '"fooBar"',
},
],
}));
} | 1davidmichael/aws-cdk | packages/@aws-cdk/aws-events-targets/test/kinesis/kinesis-stream.test.ts | TypeScript |
ArrowFunction |
({
addressProvider,
post,
client,
signal,
fixedGas,
gasFee,
gasAdjustment,
}: OperationDependency<{}>) => [
fabricatebAssetClaimRewards, // Option -> ((AddressProvider) -> MsgExecuteContract[])
createContractMsg(addressProvider), // -> MsgExecuteContract[]
createOptions(() => ... | Barlind/anchor-web-app | app/src/pages/basset/transactions/claimOptions.ts | TypeScript |
ArrowFunction |
() => ({
fee: new StdFee(gasFee, fixedGas + 'uusd'),
gasAdjustment,
}) | Barlind/anchor-web-app | app/src/pages/basset/transactions/claimOptions.ts | TypeScript |
ArrowFunction |
() => ({ fixedGas }) | Barlind/anchor-web-app | app/src/pages/basset/transactions/claimOptions.ts | TypeScript |
ClassDeclaration |
@Component({
moduleId: module.id,
selector: 'as-jobs',
templateUrl: 'jobs.component.html',
styleUrls: ['jobs.component.css']
})
export class JobsComponent implements OnInit {
ngOnInit() {
console.log('OnInit');
}
} | ShaunKassa/AngularRedux | src/client/app/+jobs/jobs.component.ts | TypeScript |
MethodDeclaration |
ngOnInit() {
console.log('OnInit');
} | ShaunKassa/AngularRedux | src/client/app/+jobs/jobs.component.ts | TypeScript |
ArrowFunction |
() => {
test('It should throw an error if no argument is provided', () => {
expect(() => {
// @ts-ignore
makeLineHeightTokens();
}).toThrow();
});
test('It should throw an error if children are missing', () => {
expect(() => {
// @ts-ignore
makeLineHeightTokens({});
}).to... | gongchunhui2018/figmagic | __tests__/entities/Token/logic/makeLineHeightTokens.test.ts | TypeScript |
ArrowFunction |
() => {
expect(() => {
// @ts-ignore
makeLineHeightTokens();
}).toThrow();
} | gongchunhui2018/figmagic | __tests__/entities/Token/logic/makeLineHeightTokens.test.ts | TypeScript |
ArrowFunction |
() => {
// @ts-ignore
makeLineHeightTokens();
} | gongchunhui2018/figmagic | __tests__/entities/Token/logic/makeLineHeightTokens.test.ts | TypeScript |
ArrowFunction |
() => {
expect(() => {
// @ts-ignore
makeLineHeightTokens({});
}).toThrow();
} | gongchunhui2018/figmagic | __tests__/entities/Token/logic/makeLineHeightTokens.test.ts | TypeScript |
ArrowFunction |
() => {
// @ts-ignore
makeLineHeightTokens({});
} | gongchunhui2018/figmagic | __tests__/entities/Token/logic/makeLineHeightTokens.test.ts | TypeScript |
ArrowFunction |
() => {
expect(
// @ts-ignore
makeLineHeightTokens(lineHeightFrameNoNameStyle)
).toEqual({});
} | gongchunhui2018/figmagic | __tests__/entities/Token/logic/makeLineHeightTokens.test.ts | TypeScript |
ArrowFunction |
() => {
test('It should return a complete object when passing in valid input', () => {
expect(makeLineHeightTokens(lineHeightFrame, 16)).toEqual(
expect.objectContaining({ l: '1.65', m: '1.45', s: '1.35', xs: '1.00', auto: 'normal' })
);
});
test('It should round values to a given precision', () =... | gongchunhui2018/figmagic | __tests__/entities/Token/logic/makeLineHeightTokens.test.ts | TypeScript |
ArrowFunction |
() => {
expect(makeLineHeightTokens(lineHeightFrame, 16)).toEqual(
expect.objectContaining({ l: '1.65', m: '1.45', s: '1.35', xs: '1.00', auto: 'normal' })
);
} | gongchunhui2018/figmagic | __tests__/entities/Token/logic/makeLineHeightTokens.test.ts | TypeScript |
ArrowFunction |
() => {
expect(makeLineHeightTokens(lineHeightFrame, 16, 3)).toEqual(
expect.objectContaining({ l: '1.650', m: '1.450', s: '1.350', xs: '1.000', auto: 'normal' })
);
} | gongchunhui2018/figmagic | __tests__/entities/Token/logic/makeLineHeightTokens.test.ts | TypeScript |
FunctionDeclaration | /**
* Given a min and max, restrict the given number
* to the range.
* @param min the minimum
* @param n the value
* @param max the maximum
*/
export function clamp(min: number, n: number, max: number) {
return Math.max(min, Math.min(n, max));
} | xgqfrms-GitHub/ionic2 | src/util/util.ts | TypeScript |
FunctionDeclaration | /**
* The assign() method is used to copy the values of all enumerable own
* properties from one or more source objects to a target object. It will
* return the target object. When available, this method will use
* `Object.assign()` under-the-hood.
* @param target The target object
* @param source(s) The source... | xgqfrms-GitHub/ionic2 | src/util/util.ts | TypeScript |
FunctionDeclaration | /**
* Do a deep extend (merge).
* @param dst the destination
* @param ... the param objects
*/
export function merge(dst: any, ...args: any[]) {
return _baseExtend(dst, [].slice.call(arguments, 1), true);
} | xgqfrms-GitHub/ionic2 | src/util/util.ts | TypeScript |
FunctionDeclaration |
function _baseExtend(dst: any, objs: any, deep: boolean) {
for (var i = 0, ii = objs.length; i < ii; ++i) {
var obj = objs[i];
if (!obj || !isObject(obj) && !isFunction(obj)) continue;
var keys = Object.keys(obj);
for (var j = 0, jj = keys.length; j < jj; j++) {
var key = keys[j];
var src... | xgqfrms-GitHub/ionic2 | src/util/util.ts | TypeScript |
FunctionDeclaration |
export function debounce(fn: Function, wait: number, immediate: boolean = false): any {
var timeout: number, args: any, context: any, timestamp: number, result: any;
return function() {
context = this;
args = arguments;
timestamp = Date.now();
var later: any = function() {
var last: any = Date.now()... | xgqfrms-GitHub/ionic2 | src/util/util.ts | TypeScript |
FunctionDeclaration | /**
* Apply default arguments if they don't exist in
* the first object.
* @param the destination to apply defaults to.
*/
export function defaults(dest: any, ...args: any[]) {
for (var i = arguments.length - 1; i >= 1; i--) {
var source = arguments[i];
if (source) {
for (var key in source) {
... | xgqfrms-GitHub/ionic2 | src/util/util.ts | TypeScript |
FunctionDeclaration | /**
* @private
*/
export function reorderArray(array: any[], indexes: {from: number, to: number}): any[] {
let element = array[indexes.from];
array.splice(indexes.from, 1);
array.splice(indexes.to, 0, element);
return array;
} | xgqfrms-GitHub/ionic2 | src/util/util.ts | TypeScript |
FunctionDeclaration | /**
* @private
*/
function _assert(actual: any, reason?: string) {
if (!actual) {
let message = 'IONIC ASSERT: ' + reason;
console.error(message);
throw new Error(message);
}
} | xgqfrms-GitHub/ionic2 | src/util/util.ts | TypeScript |
ArrowFunction |
(val: any) => typeof val === 'boolean' | xgqfrms-GitHub/ionic2 | src/util/util.ts | TypeScript |
ArrowFunction |
(val: any) => typeof val === 'string' | xgqfrms-GitHub/ionic2 | src/util/util.ts | TypeScript |
ArrowFunction |
(val: any) => typeof val === 'number' | xgqfrms-GitHub/ionic2 | src/util/util.ts | TypeScript |
ArrowFunction |
(val: any) => typeof val === 'function' | xgqfrms-GitHub/ionic2 | src/util/util.ts | TypeScript |
ArrowFunction |
(val: any) => typeof val !== 'undefined' | xgqfrms-GitHub/ionic2 | src/util/util.ts | TypeScript |
ArrowFunction |
(val: any) => typeof val === 'undefined' | xgqfrms-GitHub/ionic2 | src/util/util.ts | TypeScript |
ArrowFunction |
(val: any) => val !== undefined && val !== null | xgqfrms-GitHub/ionic2 | src/util/util.ts | TypeScript |
ArrowFunction |
(val: any) => val === undefined || val === null | xgqfrms-GitHub/ionic2 | src/util/util.ts | TypeScript |
ArrowFunction |
(val: any) => typeof val === 'object' | xgqfrms-GitHub/ionic2 | src/util/util.ts | TypeScript |
FunctionDeclaration |
export async function noOp(configs: Configs) {} | Bj0rnen/kpt-functions-sdk | ts/demo-functions/src/no_op.ts | TypeScript |
ArrowFunction |
status => status.name === container.name | Blackdread/lens | src/renderer/components/+workloads-pods/pod-details-container.tsx | TypeScript |
ArrowFunction |
c => c.name == name | Blackdread/lens | src/renderer/components/+workloads-pods/pod-details-container.tsx | TypeScript |
ArrowFunction |
(port) => {
const key = `${container.name}-port-${port.containerPort}-${port.protocol}`
return(
<PodContainerPort pod={pod} port={port} key={key}/> | Blackdread/lens | src/renderer/components/+workloads-pods/pod-details-container.tsx | TypeScript |
ArrowFunction |
mount => {
const { name, mountPath, readOnly } = mount;
return (
<React.Fragment key={name + mountPath} | Blackdread/lens | src/renderer/components/+workloads-pods/pod-details-container.tsx | TypeScript |
ArrowFunction |
(value, index) => (
<Badge key={index} | Blackdread/lens | src/renderer/components/+workloads-pods/pod-details-container.tsx | TypeScript |
ClassDeclaration |
export class PodDetailsContainer extends React.Component<Props> {
render() {
const { pod, container, metrics } = this.props
if (!pod || !container) return null
const { name, image, imagePullPolicy, ports, volumeMounts, command, args } = container
const status = pod.getContainerStatuses().find(status ... | Blackdread/lens | src/renderer/components/+workloads-pods/pod-details-container.tsx | TypeScript |
InterfaceDeclaration |
interface Props {
pod: Pod;
container: IPodContainer;
metrics?: { [key: string]: IMetrics };
} | Blackdread/lens | src/renderer/components/+workloads-pods/pod-details-container.tsx | TypeScript |
MethodDeclaration |
render() {
const { pod, container, metrics } = this.props
if (!pod || !container) return null
const { name, image, imagePullPolicy, ports, volumeMounts, command, args } = container
const status = pod.getContainerStatuses().find(status => status.name === container.name)
const state = status ? Object... | Blackdread/lens | src/renderer/components/+workloads-pods/pod-details-container.tsx | TypeScript |
MethodDeclaration |
cssNames("status", state) | Blackdread/lens | src/renderer/components/+workloads-pods/pod-details-container.tsx | TypeScript |
ArrowFunction |
(state: fromFeature.TeacherState) => state.exercises | IgorArshinov/IT-Project | IT-Project-Front-End/src/app/teacher/store/selectors/exercise.selectors.ts | TypeScript |
ArrowFunction |
(exercises, categories) => {
return exercises.map (ex => {
return { ... ex, categoryName: categories.find (c => c.id === ex.categoryId).name };
})
} | IgorArshinov/IT-Project | IT-Project-Front-End/src/app/teacher/store/selectors/exercise.selectors.ts | TypeScript |
ArrowFunction |
ex => {
return { ... ex, categoryName: categories.find (c => c.id === ex.categoryId).name };
} | IgorArshinov/IT-Project | IT-Project-Front-End/src/app/teacher/store/selectors/exercise.selectors.ts | TypeScript |
ArrowFunction |
c => c.id === ex.categoryId | IgorArshinov/IT-Project | IT-Project-Front-End/src/app/teacher/store/selectors/exercise.selectors.ts | TypeScript |
ArrowFunction |
(id) => createSelector(
getExerciseState,
fromExercise.getExerciseById(id),
) | IgorArshinov/IT-Project | IT-Project-Front-End/src/app/teacher/store/selectors/exercise.selectors.ts | TypeScript |
ClassDeclaration |
export class DownloadAssetsCommand extends AbstractCommand {
constructor() {
super("downloadassets", "Загрузить ассеты", Category.UPDATES, "<source type> <version> <folder name>")
}
async invoke(...args: string[]): Promise<void> {
const [sourceType, assetsName, dirName] = args
if (... | AuroraTeam/LauncherServer | src/commands/updates/DownloadAssetsCommand.ts | TypeScript |
MethodDeclaration |
async invoke(...args: string[]): Promise<void> {
const [sourceType, assetsName, dirName] = args
if (!sourceType) return LogHelper.error("Укажите тип источника!")
if (!assetsName) return LogHelper.error("Укажите название/версию ассетов!")
if (!dirName) return LogHelper.error("Укажите наз... | AuroraTeam/LauncherServer | src/commands/updates/DownloadAssetsCommand.ts | TypeScript |
FunctionDeclaration |
export declare function arrayInsert(form: string, field: string, index: number, value: any): FormAction; | AndreasHald/DefinitelyTyped | types/redux-form/lib/actions.d.ts | TypeScript |
FunctionDeclaration |
export declare function arrayMove(form: string, field: string, from: number, to: number): FormAction; | AndreasHald/DefinitelyTyped | types/redux-form/lib/actions.d.ts | TypeScript |
FunctionDeclaration |
export declare function arrayPop(form: string, field: string): FormAction; | AndreasHald/DefinitelyTyped | types/redux-form/lib/actions.d.ts | TypeScript |
FunctionDeclaration |
export declare function arrayPush(form: string, field: string, value: any): FormAction; | AndreasHald/DefinitelyTyped | types/redux-form/lib/actions.d.ts | TypeScript |
FunctionDeclaration |
export declare function arrayRemove(form: string, field: string, index: number): FormAction; | AndreasHald/DefinitelyTyped | types/redux-form/lib/actions.d.ts | TypeScript |
FunctionDeclaration |
export declare function arrayRemoveAll(form: string, field: string): FormAction; | AndreasHald/DefinitelyTyped | types/redux-form/lib/actions.d.ts | TypeScript |
FunctionDeclaration |
export declare function arrayShift(form: string, field: string): FormAction; | AndreasHald/DefinitelyTyped | types/redux-form/lib/actions.d.ts | TypeScript |
FunctionDeclaration |
export declare function arraySplice(form: string, field: string, index: number, removeNum: number, value: any): FormAction; | AndreasHald/DefinitelyTyped | types/redux-form/lib/actions.d.ts | TypeScript |
FunctionDeclaration |
export declare function arraySwap(form: string, field: string, indexA: number, indexB: number): FormAction; | AndreasHald/DefinitelyTyped | types/redux-form/lib/actions.d.ts | TypeScript |
FunctionDeclaration |
export declare function arrayUnshift(form: string, field: string, value: any): FormAction; | AndreasHald/DefinitelyTyped | types/redux-form/lib/actions.d.ts | TypeScript |
FunctionDeclaration |
export declare function autofill(form: string, field: string, value: any): FormAction; | AndreasHald/DefinitelyTyped | types/redux-form/lib/actions.d.ts | TypeScript |
FunctionDeclaration |
export declare function blur(form: string, field: string, value: any): FormAction; | AndreasHald/DefinitelyTyped | types/redux-form/lib/actions.d.ts | TypeScript |
FunctionDeclaration |
export declare function change(form: string, field: string, value: any): FormAction; | AndreasHald/DefinitelyTyped | types/redux-form/lib/actions.d.ts | TypeScript |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.