type
stringclasses
7 values
content
stringlengths
4
9.55k
repo
stringlengths
7
96
path
stringlengths
4
178
language
stringclasses
1 value
MethodDeclaration
emit(eventName: string, props: any): void { this._emitter.emit(eventName, props); }
AlexSensei/expo
packages/@unimodules/react-native-adapter/src/SyntheticPlatformEmitter.ts
TypeScript
ClassDeclaration
export class Cart { constructor( public id: number, public type: string, public price: number, public videokaart: any, public processor: any, public memory: any, public totaal: number ){} }
wietzehiha/project56
src/app/cart/model/cart.ts
TypeScript
FunctionDeclaration
function hash(s: string, max: number): number { let hash = 0x811c9dc5 & 0xfffffff; for (let i = 0; i < s.length; i++) { hash ^= s.charCodeAt(i); hash = (hash * 16777619) & 0xffffffff; } return Math.abs(hash) % max; }
FFHixio/perfetto
ui/src/common/colorizer.ts
TypeScript
FunctionDeclaration
export function hueForCpu(cpu: number): number { return (128 + (32 * cpu)) % 256; }
FFHixio/perfetto
ui/src/common/colorizer.ts
TypeScript
FunctionDeclaration
export function colorForState(state: string): Readonly<Color> { if (state === 'Running') { return DARK_GREEN; } else if (state.startsWith('Runnable')) { return LIME_GREEN; } else if (state.includes('Uninterruptible Sleep')) { if (state.includes('non-IO')) { return DESAT_RED; } return OR...
FFHixio/perfetto
ui/src/common/colorizer.ts
TypeScript
FunctionDeclaration
export function textColorForState(stateCode: string): string { const background = colorForState(stateCode); return background.l > 80 ? '#404040' : '#fff'; }
FFHixio/perfetto
ui/src/common/colorizer.ts
TypeScript
FunctionDeclaration
export function colorForTid(tid: number): Color { const colorIdx = hash(tid.toString(), MD_PALETTE.length); return Object.assign({}, MD_PALETTE[colorIdx]); }
FFHixio/perfetto
ui/src/common/colorizer.ts
TypeScript
FunctionDeclaration
export function hueForSlice(sliceName: string): number { return hash(sliceName, 360); }
FFHixio/perfetto
ui/src/common/colorizer.ts
TypeScript
FunctionDeclaration
export function colorForThread(thread?: {pid?: number, tid: number}): Color { if (thread === undefined) { return Object.assign({}, GREY_COLOR); } const tid = thread.pid ? thread.pid : thread.tid; return colorForTid(tid); }
FFHixio/perfetto
ui/src/common/colorizer.ts
TypeScript
FunctionDeclaration
// 40 different random hues 9 degrees apart. export function randomColor(): string { const hue = Math.floor(Math.random() * 40) * 9; return '#' + hsl.hex([hue, 90, 30]); }
FFHixio/perfetto
ui/src/common/colorizer.ts
TypeScript
InterfaceDeclaration
export interface Color { c: string; h: number; s: number; l: number; a?: number; }
FFHixio/perfetto
ui/src/common/colorizer.ts
TypeScript
FunctionDeclaration
function InsuranceFormMarriage() { const history = useHistory(); const classes = useStyles(); const profile = useSelector((state: RootState) => state.person.profile); const dispatch = useDispatch(); const ageList = [false, true]; return ( <AppPage> <Box className={classes.appHeader}> <...
denisTrubicin93/mirror-signage
src/containers/Insurance/InsuranceFormMarriage.tsx
TypeScript
ArrowFunction
() => createStyles({ title: { paddingLeft: 48, height: 96, marginTop: 24, marginBottom: 64, fontFamily: 'Noto Sans JP', fontStyle: 'normal', fontWeight: 'normal', fontSize: '96px', lineHeight: '110%', verticalAlign: 'middle', }, question: { ...
denisTrubicin93/mirror-signage
src/containers/Insurance/InsuranceFormMarriage.tsx
TypeScript
ArrowFunction
(state: RootState) => state.person.profile
denisTrubicin93/mirror-signage
src/containers/Insurance/InsuranceFormMarriage.tsx
TypeScript
ArrowFunction
(e: any) => { history.push('insurance'); }
denisTrubicin93/mirror-signage
src/containers/Insurance/InsuranceFormMarriage.tsx
TypeScript
ArrowFunction
(item, index) => { return ( <Grid key={`${index.toString()}`}
denisTrubicin93/mirror-signage
src/containers/Insurance/InsuranceFormMarriage.tsx
TypeScript
MethodDeclaration
dispatch(setMarriage
denisTrubicin93/mirror-signage
src/containers/Insurance/InsuranceFormMarriage.tsx
TypeScript
MethodDeclaration
getMarriageLabel(item)
denisTrubicin93/mirror-signage
src/containers/Insurance/InsuranceFormMarriage.tsx
TypeScript
FunctionDeclaration
function getTypeName(type: any): string { return type['name'] || typeof type; }
TeamMicLee/angular-cn
packages/common/src/directives/ng_for_of.ts
TypeScript
ArrowFunction
(item: IterableChangeRecord<any>, adjustedPreviousIndex: number, currentIndex: number) => { if (item.previousIndex == null) { const view = this._viewContainer.createEmbeddedView( this._template, new NgForOfContext<T>(null !, this._ngForOf, -1, -1), currentIndex); const...
TeamMicLee/angular-cn
packages/common/src/directives/ng_for_of.ts
TypeScript
ArrowFunction
(record: any) => { const viewRef = <EmbeddedViewRef<NgForOfContext<T>>>this._viewContainer.get(record.currentIndex); viewRef.context.$implicit = record.item; }
TeamMicLee/angular-cn
packages/common/src/directives/ng_for_of.ts
TypeScript
ClassDeclaration
/** * @publicApi */ export class NgForOfContext<T> { constructor( public $implicit: T, public ngForOf: NgIterable<T>, public index: number, public count: number) {} get first(): boolean { return this.index === 0; } get last(): boolean { return this.index === this.count - 1; } get even(): boolea...
TeamMicLee/angular-cn
packages/common/src/directives/ng_for_of.ts
TypeScript
ClassDeclaration
class RecordViewTuple<T> { constructor(public record: any, public view: EmbeddedViewRef<NgForOfContext<T>>) {} }
TeamMicLee/angular-cn
packages/common/src/directives/ng_for_of.ts
TypeScript
MethodDeclaration
/** * Applies the changes when needed. */ ngDoCheck(): void { if (this._ngForOfDirty) { this._ngForOfDirty = false; // React on ngForOf changes only once all inputs have been initialized const value = this._ngForOf; if (!this._differ && value) { try { this._differ = t...
TeamMicLee/angular-cn
packages/common/src/directives/ng_for_of.ts
TypeScript
MethodDeclaration
private _applyChanges(changes: IterableChanges<T>) { const insertTuples: RecordViewTuple<T>[] = []; changes.forEachOperation( (item: IterableChangeRecord<any>, adjustedPreviousIndex: number, currentIndex: number) => { if (item.previousIndex == null) { const view = this._viewContai...
TeamMicLee/angular-cn
packages/common/src/directives/ng_for_of.ts
TypeScript
MethodDeclaration
private _perViewChange( view: EmbeddedViewRef<NgForOfContext<T>>, record: IterableChangeRecord<any>) { view.context.$implicit = record.item; }
TeamMicLee/angular-cn
packages/common/src/directives/ng_for_of.ts
TypeScript
MethodDeclaration
/** * Asserts the correct type of the context for the template that `NgForOf` will render. * * The presence of this method is a signal to the Ivy template type-check compiler that the * `NgForOf` structural directive renders its template with a specific context type. */ static ngTemplateContextGuard<T>(d...
TeamMicLee/angular-cn
packages/common/src/directives/ng_for_of.ts
TypeScript
FunctionDeclaration
export function useTranslation (): UseTranslationResponse<'app-contracts'> { return useTranslationBase('app-contracts'); }
AXIA-JS/apps
packages/page-contracts/src/translate.ts
TypeScript
ClassDeclaration
export class TextExtension extends SceneObjectExtension { private static _instance = new TextExtension(); static getInstance() { return this._instance; } constructor() { super({ phaserTypeName: "Phaser.GameObjects.Text", typeNam...
ItsGravix/PhaserEditor2D-v3
source/editor/plugins/phasereditor2d.scene/src/ui/sceneobjects/text/TextExtension.ts
TypeScript
MethodDeclaration
static getInstance() { return this._instance; }
ItsGravix/PhaserEditor2D-v3
source/editor/plugins/phasereditor2d.scene/src/ui/sceneobjects/text/TextExtension.ts
TypeScript
MethodDeclaration
acceptsDropData(data: any): boolean { return false; }
ItsGravix/PhaserEditor2D-v3
source/editor/plugins/phasereditor2d.scene/src/ui/sceneobjects/text/TextExtension.ts
TypeScript
MethodDeclaration
createSceneObjectWithAsset(args: ICreateWithAssetArgs): ISceneObject { return null; }
ItsGravix/PhaserEditor2D-v3
source/editor/plugins/phasereditor2d.scene/src/ui/sceneobjects/text/TextExtension.ts
TypeScript
MethodDeclaration
createEmptySceneObject(args: ICreateEmptyArgs): ISceneObject { const text = new Text(args.scene, args.x, args.y, "New text", {}); return text; }
ItsGravix/PhaserEditor2D-v3
source/editor/plugins/phasereditor2d.scene/src/ui/sceneobjects/text/TextExtension.ts
TypeScript
MethodDeclaration
createSceneObjectWithData(args: ICreateWithDataArgs): ISceneObject { const text = new Text(args.scene, 0, 0, "", {}); text.getEditorSupport().readJSON(args.data); return text; }
ItsGravix/PhaserEditor2D-v3
source/editor/plugins/phasereditor2d.scene/src/ui/sceneobjects/text/TextExtension.ts
TypeScript
MethodDeclaration
async getAssetsFromObjectData(args: IGetAssetsFromObjectArgs): Promise<any[]> { return []; }
ItsGravix/PhaserEditor2D-v3
source/editor/plugins/phasereditor2d.scene/src/ui/sceneobjects/text/TextExtension.ts
TypeScript
MethodDeclaration
getCodeDOMBuilder(): ObjectCodeDOMBuilder { return new TextCodeDOMBuilder(); }
ItsGravix/PhaserEditor2D-v3
source/editor/plugins/phasereditor2d.scene/src/ui/sceneobjects/text/TextExtension.ts
TypeScript
FunctionDeclaration
declare function postMessage(message: any): void;
Magnithor/CanvasTable
Testing/worker.ts
TypeScript
FunctionDeclaration
function customDraw(canvasTable: CustomCanvasTable, context: CanvasRenderingContext2D, rowIndex: number, col: ICanvasTableColumnConf, left: number, top: number, right: number, bottom: number, width: number, height: number, r: number, dataValue: any, row: any, data: any): void { ...
Magnithor/CanvasTable
Testing/worker.ts
TypeScript
ArrowFunction
(data: any, row: any, col: ICanvasTableColumnConf[], i: number, editRowItem: IEditRowItem) => { if (filter === null) { return true; } return !( (row.country || "").indexOf(filter) === -1 && (row.name || "").indexOf(filter) === -1 && (row.subcountry || "").indexOf(filter) === -1 && ...
Magnithor/CanvasTable
Testing/worker.ts
TypeScript
ArrowFunction
() => { if (httpRequest.readyState === XMLHttpRequest.DONE) { const data = JSON.parse(httpRequest.responseText); offscreenCanvasTableWorker.setData(data); } }
Magnithor/CanvasTable
Testing/worker.ts
TypeScript
ArrowFunction
(message) => { if (message.data.mthbCanvasTable !== undefined) { offscreenCanvasTableWorker.message(message.data); return; } if (message.data.filter) { filter = message.data.filter; offscreenCanvasTableWorker.askForReIndex(); } postMessage("this is the response " + ...
Magnithor/CanvasTable
Testing/worker.ts
TypeScript
ArrowFunction
x => this.cardLayouts$.next(x)
QuinntyneBrown/Commitments
src/Commitments.SPA/ClientApp/src/app/card-layouts/card-layouts-page.component.ts
TypeScript
ArrowFunction
x => x.cardLayoutId == $event.data.cardLayoutId
QuinntyneBrown/Commitments
src/Commitments.SPA/ClientApp/src/app/card-layouts/card-layouts-page.component.ts
TypeScript
ArrowFunction
(t) => t.cardLayoutId == cardLayout.cardLayoutId
QuinntyneBrown/Commitments
src/Commitments.SPA/ClientApp/src/app/card-layouts/card-layouts-page.component.ts
TypeScript
ArrowFunction
$event => this.handleEditClick($event)
QuinntyneBrown/Commitments
src/Commitments.SPA/ClientApp/src/app/card-layouts/card-layouts-page.component.ts
TypeScript
ArrowFunction
$event => this.handleRemoveClick($event)
QuinntyneBrown/Commitments
src/Commitments.SPA/ClientApp/src/app/card-layouts/card-layouts-page.component.ts
TypeScript
ArrowFunction
x => this.addOrUpdate(x)
QuinntyneBrown/Commitments
src/Commitments.SPA/ClientApp/src/app/card-layouts/card-layouts-page.component.ts
TypeScript
ClassDeclaration
@Component({ templateUrl: "./card-layouts-page.component.html", styleUrls: ["./card-layouts-page.component.css"], selector: "app-card-layouts-page" }) export class CardLayoutsPageComponent { constructor( private _cardLayoutService: CardLayoutService, private _editCardLayoutOverlay: EditCardLayoutOverl...
QuinntyneBrown/Commitments
src/Commitments.SPA/ClientApp/src/app/card-layouts/card-layouts-page.component.ts
TypeScript
MethodDeclaration
ngOnInit() { this._cardLayoutService.get() .pipe(map(x => this.cardLayouts$.next(x))) .subscribe(); }
QuinntyneBrown/Commitments
src/Commitments.SPA/ClientApp/src/app/card-layouts/card-layouts-page.component.ts
TypeScript
MethodDeclaration
ngOnDestroy() { this.onDestroy.next(); }
QuinntyneBrown/Commitments
src/Commitments.SPA/ClientApp/src/app/card-layouts/card-layouts-page.component.ts
TypeScript
MethodDeclaration
public handleRemoveClick($event) { const cardLayouts: Array<CardLayout> = [...this.cardLayouts$.value]; const index = cardLayouts.findIndex(x => x.cardLayoutId == $event.data.cardLayoutId); cardLayouts.splice(index, 1); this.cardLayouts$.next(cardLayouts); this._cardLayoutService.remove({ cardLayo...
QuinntyneBrown/Commitments
src/Commitments.SPA/ClientApp/src/app/card-layouts/card-layouts-page.component.ts
TypeScript
MethodDeclaration
public handleEditClick($event) { }
QuinntyneBrown/Commitments
src/Commitments.SPA/ClientApp/src/app/card-layouts/card-layouts-page.component.ts
TypeScript
MethodDeclaration
public addOrUpdate(cardLayout: CardLayout) { if (!cardLayout) return; let cardLayouts = [...this.cardLayouts$.value]; const i = cardLayouts.findIndex((t) => t.cardLayoutId == cardLayout.cardLayoutId); const _ = i < 0 ? cardLayouts.push(cardLayout) : cardLayouts[i] = cardLayout; this.cardLayout...
QuinntyneBrown/Commitments
src/Commitments.SPA/ClientApp/src/app/card-layouts/card-layouts-page.component.ts
TypeScript
MethodDeclaration
public onGridReady(params) { this._gridApi = params.api; this._gridApi.sizeColumnsToFit(); }
QuinntyneBrown/Commitments
src/Commitments.SPA/ClientApp/src/app/card-layouts/card-layouts-page.component.ts
TypeScript
MethodDeclaration
public handleFABButtonClick() { this._editCardLayoutOverlay.create() .pipe(takeUntil(this.onDestroy), map(x => this.addOrUpdate(x))) .subscribe(); }
QuinntyneBrown/Commitments
src/Commitments.SPA/ClientApp/src/app/card-layouts/card-layouts-page.component.ts
TypeScript
ClassDeclaration
@Component({ templateUrl: 'tabs-page.html' }) export class TabsPage { tab1Root: any = HomePage; tab2Root: any = MembersPage; tab3Root: any = MemberPassbookPage; mySelectedIndex: number; constructor(navParams: NavParams) { this.mySelectedIndex = navParams.data.tabIndex || 0; } }
santoshgund/FinoTracker
src/pages/tabs-page/tabs-page.ts
TypeScript
ClassDeclaration
@Component({ selector: 'medal-component', template: `<span>{{this.displayValue}}</span>` }) export class MedalCellRenderer implements AgRendererComponent { private displayValue: string; agInit(params: ICellRendererParams): void { this.displayValue = new Array(parseInt(params.value, 10)).fill('...
HugoUno/ag-grid
grid-packages/ag-grid-docs/documentation/doc-pages/component-cell-renderer/examples/simple/medal-cell-renderer.component_angular.ts
TypeScript
MethodDeclaration
agInit(params: ICellRendererParams): void { this.displayValue = new Array(parseInt(params.value, 10)).fill('#').join(''); }
HugoUno/ag-grid
grid-packages/ag-grid-docs/documentation/doc-pages/component-cell-renderer/examples/simple/medal-cell-renderer.component_angular.ts
TypeScript
ClassDeclaration
@Component({ selector: 'app-root', templateUrl: './app.component.html', styleUrls: ['./app.component.scss'] }) export class AppComponent { title = 'Landing'; constructor(private readonly changeDetectorRef: ChangeDetectorRef) {} @HostListener('window:resize') public processResize(): void { this.chan...
YanaParsh/hse-oyo-landing
src/app/app.component.ts
TypeScript
MethodDeclaration
@HostListener('window:resize') public processResize(): void { this.changeDetectorRef.markForCheck(); }
YanaParsh/hse-oyo-landing
src/app/app.component.ts
TypeScript
FunctionDeclaration
export declare function run(maybeArgv?: Array<string>, project?: Config.Path): Promise<void>;
jericfey/TemplateEngine
node_modules/jest-cli/build/cli/index.d.ts
TypeScript
ArrowFunction
(priority: string | number): number => { if (typeof priority === "number") { return priority; } return priorityMap[priority]; }
talik077/agenda
lib/utils/parse-priority.ts
TypeScript
ClassDeclaration
export default class Particle{ private particleSprite : PIXI.Sprite; private baseTexture : PIXI.BaseTexture; private pos : Vector2D; private offset : Vector2D private move : Vector2D; private liveTime : number; private maxLiveTime : number; private toDelete : boolean; private...
BastianGanze/Crafters
src/player/Particle.ts
TypeScript
MethodDeclaration
public setSprite(baseTex : PIXI.BaseTexture){ this.particleSprite.texture = new PIXI.Texture(baseTex); }
BastianGanze/Crafters
src/player/Particle.ts
TypeScript
MethodDeclaration
public update(delta: number) : void { this.liveTime += 16; if(this.liveTime > this.maxLiveTime){ this.toDelete = true; } if(!this || !this.pos || !this.pos.add) debugger; this.pos = new Vector2D(this.pos.x + this.move.x, this.pos.y + this.move.y); Utils...
BastianGanze/Crafters
src/player/Particle.ts
TypeScript
MethodDeclaration
public checkAlive() : boolean{ return !this.toDelete; }
BastianGanze/Crafters
src/player/Particle.ts
TypeScript
MethodDeclaration
public destroy() { this.renderer.removeFromMainContainer(this.particleSprite); }
BastianGanze/Crafters
src/player/Particle.ts
TypeScript
FunctionDeclaration
export function run(req: IncomingMessage, res: ServerResponse, fn: RequestHandler): Promise<void>;
0xProject/DefinitelyTyped
types/micro/index.d.ts
TypeScript
FunctionDeclaration
declare function serve(fn: RequestHandler): Server;
0xProject/DefinitelyTyped
types/micro/index.d.ts
TypeScript
FunctionDeclaration
export function send(res: ServerResponse, code: number, data?: any): Promise<void>;
0xProject/DefinitelyTyped
types/micro/index.d.ts
TypeScript
FunctionDeclaration
export function sendError(req: IncomingMessage, res: ServerResponse, info: { statusCode?: number, status?: number, message?: string, stack?: string }): Promise<void>;
0xProject/DefinitelyTyped
types/micro/index.d.ts
TypeScript
FunctionDeclaration
export function createError(code: number, msg: string, orig?: Error): Error & { statusCode: number, originalError?: Error };
0xProject/DefinitelyTyped
types/micro/index.d.ts
TypeScript
FunctionDeclaration
export function buffer(req: IncomingMessage, info?: { limit?: string, encoding?: string }): Promise<Buffer | string>;
0xProject/DefinitelyTyped
types/micro/index.d.ts
TypeScript
FunctionDeclaration
export function text(req: IncomingMessage, info?: { limit?: string, encoding?: string }): Promise<string>;
0xProject/DefinitelyTyped
types/micro/index.d.ts
TypeScript
FunctionDeclaration
export function json(req: IncomingMessage, info?: { limit?: string, encoding?: string }): Promise<object>;
0xProject/DefinitelyTyped
types/micro/index.d.ts
TypeScript
TypeAliasDeclaration
export type RequestHandler = (req: IncomingMessage, res: ServerResponse) => any;
0xProject/DefinitelyTyped
types/micro/index.d.ts
TypeScript
ArrowFunction
() => { const prefixCls = mergedPrefixCls.value return normalizeClass({ [`${prefixCls}-content`]: true, [`${prefixCls}-inline`]: true, }) }
miomio-xiao/idux
packages/components/menu/src/menu-sub/InlineContent.tsx
TypeScript
ArrowFunction
() => ( <ɵCollapseTransition appear> <ul v-show={isExpanded.value}
miomio-xiao/idux
packages/components/menu/src/menu-sub/InlineContent.tsx
TypeScript
MethodDeclaration
setup() { const { mergedPrefixCls } = inject(menuToken)! const { slots, isExpanded } = inject(menuSubToken)! const classes = computed(() => { const prefixCls = mergedPrefixCls.value return normalizeClass({ [`${prefixCls}-content`]: true, [`${prefixCls}-inline`]: true, }) ...
miomio-xiao/idux
packages/components/menu/src/menu-sub/InlineContent.tsx
TypeScript
ArrowFunction
() => { it('should be default constructible', () => { expect(shunt().kind).toBe(Kind.shunt); }); it('should have two successors', () => { elements.forEach((x) => { elements.map(series).forEach((y) => { expect(shunt(x, y).next).toBe(x); expect(shunt(x, y).value).toBe(y); }); ...
sandeep12407/voelectric
spec/lib/element.spec/shunt.spec.ts
TypeScript
ArrowFunction
() => { expect(shunt().kind).toBe(Kind.shunt); }
sandeep12407/voelectric
spec/lib/element.spec/shunt.spec.ts
TypeScript
ArrowFunction
() => { elements.forEach((x) => { elements.map(series).forEach((y) => { expect(shunt(x, y).next).toBe(x); expect(shunt(x, y).value).toBe(y); }); }); }
sandeep12407/voelectric
spec/lib/element.spec/shunt.spec.ts
TypeScript
ArrowFunction
(x) => { elements.map(series).forEach((y) => { expect(shunt(x, y).next).toBe(x); expect(shunt(x, y).value).toBe(y); }); }
sandeep12407/voelectric
spec/lib/element.spec/shunt.spec.ts
TypeScript
ArrowFunction
(y) => { expect(shunt(x, y).next).toBe(x); expect(shunt(x, y).value).toBe(y); }
sandeep12407/voelectric
spec/lib/element.spec/shunt.spec.ts
TypeScript
ArrowFunction
() => { elements.forEach((x) => { elements.map(series).forEach((y) => { expect(split(shunt(x, y))).toBe(x); }); }); }
sandeep12407/voelectric
spec/lib/element.spec/shunt.spec.ts
TypeScript
ArrowFunction
(x) => { elements.map(series).forEach((y) => { expect(split(shunt(x, y))).toBe(x); }); }
sandeep12407/voelectric
spec/lib/element.spec/shunt.spec.ts
TypeScript
ArrowFunction
(y) => { expect(split(shunt(x, y))).toBe(x); }
sandeep12407/voelectric
spec/lib/element.spec/shunt.spec.ts
TypeScript
ArrowFunction
() => { elements.forEach((x) => { expect(join(shunt(), x).next).toBe(x); }); }
sandeep12407/voelectric
spec/lib/element.spec/shunt.spec.ts
TypeScript
ArrowFunction
(x) => { expect(join(shunt(), x).next).toBe(x); }
sandeep12407/voelectric
spec/lib/element.spec/shunt.spec.ts
TypeScript
ArrowFunction
() => { elements.forEach((x) => { elements.map(series).forEach((y) => { expect(branch(shunt(x, y))).toBe(y); }); }); }
sandeep12407/voelectric
spec/lib/element.spec/shunt.spec.ts
TypeScript
ArrowFunction
(x) => { elements.map(series).forEach((y) => { expect(branch(shunt(x, y))).toBe(y); }); }
sandeep12407/voelectric
spec/lib/element.spec/shunt.spec.ts
TypeScript
ArrowFunction
(y) => { expect(branch(shunt(x, y))).toBe(y); }
sandeep12407/voelectric
spec/lib/element.spec/shunt.spec.ts
TypeScript
ArrowFunction
() => { elements.forEach((y) => { if (y.kind === Kind.series) { expect(merge(shunt(), y).value).toBe(y); } else { expect(() => merge(shunt(), y)).toThrow(); } }); }
sandeep12407/voelectric
spec/lib/element.spec/shunt.spec.ts
TypeScript
ArrowFunction
(y) => { if (y.kind === Kind.series) { expect(merge(shunt(), y).value).toBe(y); } else { expect(() => merge(shunt(), y)).toThrow(); } }
sandeep12407/voelectric
spec/lib/element.spec/shunt.spec.ts
TypeScript
ArrowFunction
() => merge(shunt(), y)
sandeep12407/voelectric
spec/lib/element.spec/shunt.spec.ts
TypeScript
ArrowFunction
() => { elements.forEach((x) => { elements.map(series).forEach((y) => { expect(shunt(x, y).level).toBe(x.level + y.level + 1); }); }); }
sandeep12407/voelectric
spec/lib/element.spec/shunt.spec.ts
TypeScript
ArrowFunction
(x) => { elements.map(series).forEach((y) => { expect(shunt(x, y).level).toBe(x.level + y.level + 1); }); }
sandeep12407/voelectric
spec/lib/element.spec/shunt.spec.ts
TypeScript
ArrowFunction
(y) => { expect(shunt(x, y).level).toBe(x.level + y.level + 1); }
sandeep12407/voelectric
spec/lib/element.spec/shunt.spec.ts
TypeScript
ArrowFunction
() => { phasors.forEach((v) => { parametric.map((e) => update(e, v)).forEach((x) => { phasors.forEach((i) => { parametric.map((e) => update(e, i)).forEach((y) => { const {model, value} = shunt(undefined, series(join(x, y))); expect(project(model, [v, i])).toBeCloseTo...
sandeep12407/voelectric
spec/lib/element.spec/shunt.spec.ts
TypeScript
ArrowFunction
(v) => { parametric.map((e) => update(e, v)).forEach((x) => { phasors.forEach((i) => { parametric.map((e) => update(e, i)).forEach((y) => { const {model, value} = shunt(undefined, series(join(x, y))); expect(project(model, [v, i])).toBeCloseTo([v, sub(i, solve(value.mode...
sandeep12407/voelectric
spec/lib/element.spec/shunt.spec.ts
TypeScript