type stringclasses 7
values | content stringlengths 4 9.55k | repo stringlengths 7 96 | path stringlengths 4 178 | language stringclasses 1
value |
|---|---|---|---|---|
ArrowFunction |
_type => NullableStringFieldUpdateOperationsInput | ayushpandey8439/backend | graphql/generated/resolvers/inputs/Instructor_screeningUpdateWithoutScreenerInput.ts | TypeScript |
ArrowFunction |
_type => DateTimeFieldUpdateOperationsInput | ayushpandey8439/backend | graphql/generated/resolvers/inputs/Instructor_screeningUpdateWithoutScreenerInput.ts | TypeScript |
ArrowFunction |
_type => StudentUpdateOneWithoutInstructor_screeningInput | ayushpandey8439/backend | graphql/generated/resolvers/inputs/Instructor_screeningUpdateWithoutScreenerInput.ts | TypeScript |
ClassDeclaration |
@TypeGraphQL.InputType({
isAbstract: true
})
export class Instructor_screeningUpdateWithoutScreenerInput {
@TypeGraphQL.Field(_type => BoolFieldUpdateOperationsInput, {
nullable: true
})
success?: BoolFieldUpdateOperationsInput | undefined;
@TypeGraphQL.Field(_type => NullableStringFieldUpdateOperations... | ayushpandey8439/backend | graphql/generated/resolvers/inputs/Instructor_screeningUpdateWithoutScreenerInput.ts | TypeScript |
ArrowFunction |
v => v.version === this.version | angie1148/node-launcher | src/types/fuse/fuse.ts | TypeScript |
ArrowFunction |
key => !/^_/.test(key) | angie1148/node-launcher | src/types/fuse/fuse.ts | TypeScript |
ArrowFunction |
key => typeof this[key] !== 'function' && typeof this[key] !== 'undefined' | angie1148/node-launcher | src/types/fuse/fuse.ts | TypeScript |
ArrowFunction |
(obj: any, key) => ({...obj, [key]: this[key]}) | angie1148/node-launcher | src/types/fuse/fuse.ts | TypeScript |
ArrowFunction |
({ version }) => version === this.version | angie1148/node-launcher | src/types/fuse/fuse.ts | TypeScript |
ArrowFunction |
str => this._logOutput(str) | angie1148/node-launcher | src/types/fuse/fuse.ts | TypeScript |
ArrowFunction |
resolve => {
this._docker.run(
this.dockerImage + ` account import ${accountPath}${versionData.generateRuntimeArgs(this)}`,
newArgs,
output => this._logOutput(output),
err => this._logError(err),
() => resolve(),
);
} | angie1148/node-launcher | src/types/fuse/fuse.ts | TypeScript |
ArrowFunction |
output => this._logOutput(output) | angie1148/node-launcher | src/types/fuse/fuse.ts | TypeScript |
ArrowFunction |
err => this._logError(err) | angie1148/node-launcher | src/types/fuse/fuse.ts | TypeScript |
ArrowFunction |
code => this._logClose(code) | angie1148/node-launcher | src/types/fuse/fuse.ts | TypeScript |
ArrowFunction |
() => this._logOutput(`${this.validatorAppContainerName()} closed`) | angie1148/node-launcher | src/types/fuse/fuse.ts | TypeScript |
ArrowFunction |
() => this._logOutput(`${this.netstatContainerName()} closed`) | angie1148/node-launcher | src/types/fuse/fuse.ts | TypeScript |
ArrowFunction |
resolve => {
if(this._instance) {
const { exitCode } = this._instance;
if(typeof exitCode === 'number') {
resolve();
} else {
this._instance.on('exit', () => {
clearTimeout(timeout);
setTimeout(() => {
resolve();
}, 100... | angie1148/node-launcher | src/types/fuse/fuse.ts | TypeScript |
ArrowFunction |
() => {
clearTimeout(timeout);
setTimeout(() => {
resolve();
}, 1000);
} | angie1148/node-launcher | src/types/fuse/fuse.ts | TypeScript |
ArrowFunction |
() => {
resolve();
} | angie1148/node-launcher | src/types/fuse/fuse.ts | TypeScript |
ArrowFunction |
() => {
this._docker.stop(this.id)
.then(() => {
setTimeout(() => {
resolve();
}, 1000);
})
.catch(err => {
this._logError(err);
resolve();
});
} | angie1148/node-launcher | src/types/fuse/fuse.ts | TypeScript |
ArrowFunction |
() => {
setTimeout(() => {
resolve();
}, 1000);
} | angie1148/node-launcher | src/types/fuse/fuse.ts | TypeScript |
ArrowFunction |
() => {
resolve();
} | angie1148/node-launcher | src/types/fuse/fuse.ts | TypeScript |
ArrowFunction |
err => {
this._logError(err);
resolve();
} | angie1148/node-launcher | src/types/fuse/fuse.ts | TypeScript |
InterfaceDeclaration |
interface FuseVersionDockerImage extends VersionDockerImage {
passwordPath: string
imageValidatorApp: string
imageNetstat: string
} | angie1148/node-launcher | src/types/fuse/fuse.ts | TypeScript |
MethodDeclaration |
static versions(client: string, networkType: string): FuseVersionDockerImage[] {
client = client || Fuse.clients[0];
let versions: FuseVersionDockerImage[];
switch(client) {
case NodeClient.OPEN_ETHEREUM:
versions = [
{
version: '2.0.2',
clientVersion: '3.2.6... | angie1148/node-launcher | src/types/fuse/fuse.ts | TypeScript |
MethodDeclaration |
generateRuntimeArgs(data: CryptoNodeData): string {
return ` --no-warp --config=${path.join(this.configDir, Fuse.configName(data))}`;
} | angie1148/node-launcher | src/types/fuse/fuse.ts | TypeScript |
MethodDeclaration |
generateRuntimeArgs(data: CryptoNodeData): string {
return ` --no-warp --config=${path.join(this.configDir, Fuse.configName(data))} --bootnodes ${testnetBootnodes}`;
} | angie1148/node-launcher | src/types/fuse/fuse.ts | TypeScript |
MethodDeclaration |
generateRuntimeArgs(data: CryptoNodeData): string {
return ` --config=${path.join(this.configDir, Fuse.configName(data))}`;
} | angie1148/node-launcher | src/types/fuse/fuse.ts | TypeScript |
MethodDeclaration |
static generateConfig(client: string|Fuse = Fuse.clients[0], network = NetworkType.MAINNET, peerPort = Fuse.defaultPeerPort[NetworkType.MAINNET], rpcPort = Fuse.defaultRPCPort[NetworkType.MAINNET]): string {
let baseConfig = coreConfig;
let address = '';
if(typeof client !== 'string') { // node was passed ... | angie1148/node-launcher | src/types/fuse/fuse.ts | TypeScript |
MethodDeclaration |
static configName(data: CryptoNodeData): string {
return 'config.toml';
} | angie1148/node-launcher | src/types/fuse/fuse.ts | TypeScript |
MethodDeclaration |
toObject(): CryptoNodeData {
let keys = Object
.keys(this)
.filter(key => !/^_/.test(key));
// @ts-ignore
keys = keys.filter(key => typeof this[key] !== 'function' && typeof this[key] !== 'undefined');
// @ts-ignore
const dataObj = keys.reduce((obj: any, key) => ({...obj, [key]: this[ke... | angie1148/node-launcher | src/types/fuse/fuse.ts | TypeScript |
MethodDeclaration |
async start(): Promise<ChildProcess[]> {
const fs = this._fs;
const versions = Fuse.versions(this.client, this.network);
const versionData = versions.find(({ version }) => version === this.version) || versions[0];
if(!versionData)
throw new Error(`Unknown ${this.ticker} version ${this.version}`);... | angie1148/node-launcher | src/types/fuse/fuse.ts | TypeScript |
MethodDeclaration |
validatorAppContainerName(): string {
return `${this.id}-validator-app`;
} | angie1148/node-launcher | src/types/fuse/fuse.ts | TypeScript |
MethodDeclaration |
netstatContainerName(): string {
return `${this.id}-netstat`;
} | angie1148/node-launcher | src/types/fuse/fuse.ts | TypeScript |
MethodDeclaration |
async stop(): Promise<void> {
if(this.role === Role.VALIDATOR) {
try {
await this._docker.kill(this.validatorAppContainerName());
} catch(err) {
this._logError(err);
}
try {
await this._docker.kill(this.netstatContainerName());
} catch(err) {
this._logE... | angie1148/node-launcher | src/types/fuse/fuse.ts | TypeScript |
MethodDeclaration |
generateConfig(): string {
return Fuse.generateConfig(this);
} | angie1148/node-launcher | src/types/fuse/fuse.ts | TypeScript |
MethodDeclaration |
createAccount(): void {
const web3 = new Web3();
const keyPass = this.keyPass || uuid();
const { address, privateKey } = web3.eth.accounts.create();
this.keyPass = keyPass;
this.address = address;
this.key = web3.eth.accounts.encrypt(privateKey, keyPass);
} | angie1148/node-launcher | src/types/fuse/fuse.ts | TypeScript |
MethodDeclaration |
async rpcGetBalance(): Promise<string> {
try {
const web3 = new Web3(`http://localhost:${this.rpcPort}`);
return await web3.eth.getBalance(this.address);
} catch(err) {
return '';
}
} | angie1148/node-launcher | src/types/fuse/fuse.ts | TypeScript |
ArrowFunction |
(prototype, property) => {
const attributes: IObject<any> = {
enumerable: true,
configurable: true,
get() {
return this.options[property];
},
};
const setter = camelize(`set ${property}`);
if (prototype[setter]) {
attributes.set = function(value) {
... | sibbngheid/selecto | src/Selecto.tsx | TypeScript |
ArrowFunction |
() => {
options.keyContainer = keyContainer;
this.setKeyController();
} | sibbngheid/selecto | src/Selecto.tsx | TypeScript |
ArrowFunction |
() => {
options.toggleContinueSelect = toggleContinueSelect;
this.setKeyEvent();
} | sibbngheid/selecto | src/Selecto.tsx | TypeScript |
ArrowFunction |
(rect, i) => {
const {
left: rectLeft,
top: rectTop,
right: rectRight,
bottom: rectBottom,
} = rect;
const isStart
= rectLeft <= clientX
&& clientX <= rectRight
&& rectTop... | sibbngheid/selecto | src/Selecto.tsx | TypeScript |
ArrowFunction |
({ container, direction }) => {
this.trigger("scroll", {
container,
direction,
});
} | sibbngheid/selecto | src/Selecto.tsx | TypeScript |
ArrowFunction |
({ offsetX, offsetY, inputEvent }) => {
const datas = inputEvent.datas;
datas.startX -= offsetX;
datas.startY -= offsetY;
datas.selectableRects.forEach(rect => {
rect.top -= offsetY;
rect.bottom -= offsetY;
rect.left -= off... | sibbngheid/selecto | src/Selecto.tsx | TypeScript |
ArrowFunction |
rect => {
rect.top -= offsetY;
rect.bottom -= offsetY;
rect.left -= offsetX;
rect.right -= offsetX;
} | sibbngheid/selecto | src/Selecto.tsx | TypeScript |
ArrowFunction |
target => {
if (isObject(target)) {
selectableTargets.push(target);
} else {
const elements = [].slice.call(document.querySelectorAll(target));
elements.forEach(el => {
selectableTargets.push(el);
});
... | sibbngheid/selecto | src/Selecto.tsx | TypeScript |
ArrowFunction |
el => {
selectableTargets.push(el);
} | sibbngheid/selecto | src/Selecto.tsx | TypeScript |
ArrowFunction |
index => list[index] | sibbngheid/selecto | src/Selecto.tsx | TypeScript |
ArrowFunction |
index => prevList[index] | sibbngheid/selecto | src/Selecto.tsx | TypeScript |
ArrowFunction |
index => afterList[index] | sibbngheid/selecto | src/Selecto.tsx | TypeScript |
ArrowFunction |
index => afterPrevList[index] | sibbngheid/selecto | src/Selecto.tsx | TypeScript |
ArrowFunction |
(e: OnDragEvent, clickedTarget?: Element) => {
const { datas, clientX, clientY, inputEvent } = e;
const { continueSelect, selectFromInside, selectByClick } = this.options;
const selectableTargets = this.getSelectableTargets();
const selectableRects = selectableTargets.map(target => {
... | sibbngheid/selecto | src/Selecto.tsx | TypeScript |
ArrowFunction |
target => {
const rect = target.getBoundingClientRect();
const { left, top, width, height } = rect;
return {
left,
top,
right: left + width,
bottom: top + height,
width,
height,
... | sibbngheid/selecto | src/Selecto.tsx | TypeScript |
ArrowFunction |
target => target === pointTarget || target.contains(pointTarget) | sibbngheid/selecto | src/Selecto.tsx | TypeScript |
ArrowFunction |
(e: OnDrag) => {
const { scrollOptions } = this.options;
if (scrollOptions && scrollOptions.container) {
if (this.dragScroll.drag(e, scrollOptions)) {
return;
}
}
this.check(e);
} | sibbngheid/selecto | src/Selecto.tsx | TypeScript |
ArrowFunction |
(e: OnDragEvent) => {
const { datas } = e;
const rect = getRect(e);
this.dragScroll.dragEnd();
this.target.style.cssText += "display: none;";
this.trigger("dragEnd", {
...e,
rect,
});
this.selectEnd(
datas.startSelectedTargets,... | sibbngheid/selecto | src/Selecto.tsx | TypeScript |
ArrowFunction |
key => combi.indexOf(key) > -1 | sibbngheid/selecto | src/Selecto.tsx | TypeScript |
ArrowFunction |
(e: any) => {
if (!this.sameCombiKey(e)) {
return;
}
this.continueSelect = true;
/**
* When you keydown the key you specified in toggleContinueSelect, the keydown event is called.
* @memberof Selecto
* @event keydown
* @example
* ... | sibbngheid/selecto | src/Selecto.tsx | TypeScript |
ArrowFunction |
(e: any) => {
if (!this.sameCombiKey(e)) {
return;
}
this.continueSelect = false;
/**
* When you keyup the key you specified in toggleContinueSelect, the keyup event is called.
* @memberof Selecto
* @event keyup
* @example
* impor... | sibbngheid/selecto | src/Selecto.tsx | TypeScript |
ArrowFunction |
() => {
if (this.toggleContinueSelect && this.continueSelect) {
this.trigger("keyup", {});
}
} | sibbngheid/selecto | src/Selecto.tsx | TypeScript |
ArrowFunction |
(e: any) => {
if (!this.dragger.isFlag()) {
return;
}
let dragContainer = this.dragContainer;
if (dragContainer === window) {
dragContainer = document.documentElement;
}
const containers = dragContainer instanceof Element
? [dragConta... | sibbngheid/selecto | src/Selecto.tsx | TypeScript |
ArrowFunction |
container => {
if (container === target || container.contains(target)) {
e.preventDefault();
return true;
}
} | sibbngheid/selecto | src/Selecto.tsx | TypeScript |
InterfaceDeclaration |
interface Selecto extends Component, SelectoProperties {
on<T extends keyof SelectoEvents>(eventName: T, handlerToAttach: (event: SelectoEvents[T]) => any): this;
on(eventName: string, handlerToAttach: (event: { [key: string]: any }) => any): this;
on(events: { [key: string]: (event: { [key: string]: any }... | sibbngheid/selecto | src/Selecto.tsx | TypeScript |
MethodDeclaration |
get() {
return this.options[property];
} | sibbngheid/selecto | src/Selecto.tsx | TypeScript |
MethodDeclaration | /**
* You can set the currently selected targets.
*/
public setSelectedTargets(selectedTargets: Array<HTMLElement | SVGElement>): this {
this.selectedTargets = selectedTargets;
this.differ = new ChildrenDiffer(selectedTargets);
return this;
} | sibbngheid/selecto | src/Selecto.tsx | TypeScript |
MethodDeclaration |
public setKeyContainer(keyContainer: HTMLElement | Document | Window) {
const options = this.options;
diffValue(options.keyContainer, keyContainer, () => {
options.keyContainer = keyContainer;
this.setKeyController();
});
} | sibbngheid/selecto | src/Selecto.tsx | TypeScript |
MethodDeclaration |
public setToggleContinueSelect(toggleContinueSelect: string[] | string) {
const options = this.options;
diffValue(options.toggleContinueSelect, toggleContinueSelect, () => {
options.toggleContinueSelect = toggleContinueSelect;
this.setKeyEvent();
});
} | sibbngheid/selecto | src/Selecto.tsx | TypeScript |
MethodDeclaration |
public setPreventDefault(value: boolean) {
this.dragger.options.preventDefault = value;
} | sibbngheid/selecto | src/Selecto.tsx | TypeScript |
MethodDeclaration |
public setCheckInput(value: boolean) {
this.dragger.options.checkInput = value;
} | sibbngheid/selecto | src/Selecto.tsx | TypeScript |
MethodDeclaration | /**
* `OnDragStart` is triggered by an external event.
* @param - external event
* @example
* import Selecto from "selecto";
*
* const selecto = new Selecto();
*
* window.addEventListener("mousedown", e => {
* selecto.triggerDragStart(e);
* });
*/
public triggerD... | sibbngheid/selecto | src/Selecto.tsx | TypeScript |
MethodDeclaration | /**
* Destroy elements, properties, and events.
*/
public destroy(): void {
this.off();
this.keycon && this.keycon.destroy();
this.dragger.unset();
this.injectResult.destroy();
removeEvent(document, "selectstart", this.onDocumentSelectStart);
this.keycon = null... | sibbngheid/selecto | src/Selecto.tsx | TypeScript |
MethodDeclaration | /**
* External click or mouse events can be applied to the selecto.
* @params - Extenal click or mouse event
* @params - Specify the clicked target directly.
*/
public clickTarget(e: MouseEvent | TouchEvent, clickedTarget?: Element): this {
const { clientX, clientY } = getClient(e);
... | sibbngheid/selecto | src/Selecto.tsx | TypeScript |
MethodDeclaration |
private setKeyController() {
const { keyContainer, toggleContinueSelect } = this.options;
if (this.keycon) {
this.keycon.destroy();
this.keycon = null;
}
if (toggleContinueSelect) {
this.keycon = new KeyController(keyContainer || window);
... | sibbngheid/selecto | src/Selecto.tsx | TypeScript |
MethodDeclaration |
private setKeyEvent() {
const { toggleContinueSelect } = this.options;
if (!toggleContinueSelect || this.keycon) {
return;
}
this.setKeyController();
} | sibbngheid/selecto | src/Selecto.tsx | TypeScript |
MethodDeclaration |
private initElement() {
this.target = createElement(
<div className={CLASS_NAME}></div> as any,
this.target,
this.container,
);
const target = this.target;
const { dragContainer, checkInput, preventDefault } = this.options;
this.dragContaine... | sibbngheid/selecto | src/Selecto.tsx | TypeScript |
MethodDeclaration |
private hitTest(
selectRect: Rect,
clientX: number,
clientY: number,
targets: Array<HTMLElement | SVGElement>,
rects: Rect[],
) {
const { hitRate, selectByClick } = this.options;
const { left, top, right, bottom } = selectRect;
const passedTargets: Ar... | sibbngheid/selecto | src/Selecto.tsx | TypeScript |
MethodDeclaration |
private initDragScroll() {
this.dragScroll.on("scroll", ({ container, direction }) => {
this.trigger("scroll", {
container,
direction,
});
}).on("move", ({ offsetX, offsetY, inputEvent }) => {
const datas = inputEvent.datas;
... | sibbngheid/selecto | src/Selecto.tsx | TypeScript |
MethodDeclaration |
private getSelectableTargets() {
const selectableTargets: Array<HTMLElement | SVGElement> = [];
this.options.selectableTargets.forEach(target => {
if (isObject(target)) {
selectableTargets.push(target);
} else {
const elements = [].slice.call(doc... | sibbngheid/selecto | src/Selecto.tsx | TypeScript |
MethodDeclaration |
private getSelectedTargets(passedTargets: Array<HTMLElement | SVGElement>) {
const {
list,
prevList,
added,
removed,
} = diff(this.selectedTargets, passedTargets) as ChildrenDiffResult<HTMLElement | SVGElement>;
return added.map(index => list[ind... | sibbngheid/selecto | src/Selecto.tsx | TypeScript |
MethodDeclaration |
private select(
selectedTargets: Array<HTMLElement | SVGElement>, rect: Rect, inputEvent: any, isStart?: boolean) {
const {
added,
removed,
prevList,
list,
} = this.differ.update(selectedTargets);
if (isStart) {
/**
... | sibbngheid/selecto | src/Selecto.tsx | TypeScript |
MethodDeclaration |
private selectEnd(
startSelectedTargets: Array<HTMLElement | SVGElement>,
selectedTargets: Array<HTMLElement | SVGElement>,
rect: Rect,
e: OnDragEvent,
) {
const { inputEvent, isDouble } = e;
const {
added,
removed,
prevList,
... | sibbngheid/selecto | src/Selecto.tsx | TypeScript |
MethodDeclaration |
private check(e: any) {
const {
datas,
inputEvent,
} = e;
const rect = getRect(e);
const {
top,
left,
width,
height,
} = rect;
this.target.style.cssText
+= `display: block;`
+... | sibbngheid/selecto | src/Selecto.tsx | TypeScript |
MethodDeclaration |
private sameCombiKey(e: any) {
const toggleContinueSelect = [].concat(this.options.toggleContinueSelect);
const combi = getCombi(e.inputEvent, e.key);
return toggleContinueSelect.every(key => combi.indexOf(key) > -1);
} | sibbngheid/selecto | src/Selecto.tsx | TypeScript |
ClassDeclaration |
@NgModule({
imports: [CommonModule, FormsModule, IonicModule, MyViewPerDiemPageRoutingModule, MatIconModule, SharedModule],
declarations: [MyViewPerDiemPage],
})
export class MyViewPerDiemPageModule {} | Aaditya-Dhanraj/fyle-mobile-app2 | src/app/fyle/my-view-per-diem/my-view-per-diem.module.ts | TypeScript |
ArrowFunction |
(userId: string) => connection.get(`${table}.${userId}`).value() | ABeltramo/discord-soundbot | src/util/db/Exits.ts | TypeScript |
ArrowFunction |
(userId: string) => !!get(userId) | ABeltramo/discord-soundbot | src/util/db/Exits.ts | TypeScript |
ArrowFunction |
(userId: string, sound: string) => {
connection.set(`${table}.${userId}`, sound).write();
} | ABeltramo/discord-soundbot | src/util/db/Exits.ts | TypeScript |
ArrowFunction |
(userId: string) => {
connection.unset(`${table}.${userId}`).write();
} | ABeltramo/discord-soundbot | src/util/db/Exits.ts | TypeScript |
ArrowFunction |
async () => {
try {
const argv = parser(process.argv.slice(2), yarnYargsOpts);
const cacheDir = cachedir('larix');
const registryUrl = await runYarnAndGetLastLine(['config', 'get', 'registry']);
const projectRoot = path.resolve('.');
await checkNewVersion(registryUrl, cacheDir);
if (argv.v) ... | Acidburn0zzz/larix | packages/larix/src/index.ts | TypeScript |
ArrowFunction |
() => {
// AbstractControl.eventId(0);
} | jorroll/rx-controls | projects/rx-controls/src/lib/abstract-control/abstract-control-base-tests.ts | TypeScript |
ArrowFunction |
() => {
it('defaults', () => {
testAllDefaultsExcept(createControlBase());
});
describe('options', () => {
it('id', () => {
a = createControlBase({ options: { id: 'one' } });
expect(a.id).toEqual('one');
testAllDefaultsExcept(a, 'id');
});
... | jorroll/rx-controls | projects/rx-controls/src/lib/abstract-control/abstract-control-base-tests.ts | TypeScript |
ArrowFunction |
() => {
testAllDefaultsExcept(createControlBase());
} | jorroll/rx-controls | projects/rx-controls/src/lib/abstract-control/abstract-control-base-tests.ts | TypeScript |
ArrowFunction |
() => {
it('id', () => {
a = createControlBase({ options: { id: 'one' } });
expect(a.id).toEqual('one');
testAllDefaultsExcept(a, 'id');
});
it('data', () => {
a = createControlBase({ options: { data: 'one' } });
expect(a.data).toEqual('one')... | jorroll/rx-controls | projects/rx-controls/src/lib/abstract-control/abstract-control-base-tests.ts | TypeScript |
ArrowFunction |
() => {
a = createControlBase({ options: { id: 'one' } });
expect(a.id).toEqual('one');
testAllDefaultsExcept(a, 'id');
} | jorroll/rx-controls | projects/rx-controls/src/lib/abstract-control/abstract-control-base-tests.ts | TypeScript |
ArrowFunction |
() => {
a = createControlBase({ options: { data: 'one' } });
expect(a.data).toEqual('one');
testAllDefaultsExcept(a, 'data');
} | jorroll/rx-controls | projects/rx-controls/src/lib/abstract-control/abstract-control-base-tests.ts | TypeScript |
ArrowFunction |
() => {
a = createControlBase({ options: { disabled: true } });
expect(a).toImplementObject({
enabled: false,
selfEnabled: false,
disabled: true,
selfDisabled: true,
status: 'DISABLED',
});
testAllDefaultsExcept(
... | jorroll/rx-controls | projects/rx-controls/src/lib/abstract-control/abstract-control-base-tests.ts | TypeScript |
ArrowFunction |
() => {
a = createControlBase({ options: { dirty: true } });
expect(a).toImplementObject({
dirty: true,
selfDirty: true,
});
testAllDefaultsExcept(a, 'dirty', 'selfDirty');
a = createControlBase({ options: { dirty: false } });
test... | jorroll/rx-controls | projects/rx-controls/src/lib/abstract-control/abstract-control-base-tests.ts | TypeScript |
ArrowFunction |
() => {
a = createControlBase({ options: { readonly: true } });
expect(a).toImplementObject({
readonly: true,
selfReadonly: true,
});
testAllDefaultsExcept(a, 'readonly', 'selfReadonly');
a = createControlBase({ options: { readonly: false } }... | jorroll/rx-controls | projects/rx-controls/src/lib/abstract-control/abstract-control-base-tests.ts | TypeScript |
ArrowFunction |
() => {
a = createControlBase({ options: { submitted: true } });
expect(a).toImplementObject({
submitted: true,
selfSubmitted: true,
});
testAllDefaultsExcept(a, 'submitted', 'selfSubmitted');
a = createControlBase({ options: { submitted: fal... | jorroll/rx-controls | projects/rx-controls/src/lib/abstract-control/abstract-control-base-tests.ts | TypeScript |
ArrowFunction |
() => {
a = createControlBase({ options: { errors: { anError: true } } });
expect(a).toImplementObject({
errors: { anError: true },
selfErrors: { anError: true },
errorsStore: new Map([[CONTROL_SELF_ID, { anError: true }]]),
valid: false,
... | jorroll/rx-controls | projects/rx-controls/src/lib/abstract-control/abstract-control-base-tests.ts | TypeScript |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.