type
stringclasses
7 values
content
stringlengths
4
9.55k
repo
stringlengths
7
96
path
stringlengths
4
178
language
stringclasses
1 value
ArrowFunction
d => (serial && parseInt(serial.productId) == d.productId && parseInt(serial.vendorId) == d.vendorId) || (d.release & 0xff00) == 0x4200
IoTDan/pxt
cli/hid.ts
TypeScript
ArrowFunction
() => h
IoTDan/pxt
cli/hid.ts
TypeScript
ArrowFunction
() => { // in .then() to make sure we catch errors return new HidIO(null) }
IoTDan/pxt
cli/hid.ts
TypeScript
ArrowFunction
(buf: Buffer) => { w.sendSerialAsync(new Uint8Array(buf)).done() }
IoTDan/pxt
cli/hid.ts
TypeScript
ArrowFunction
(arr, iserr) => { let buf = new Buffer(arr) if (iserr) process.stderr.write(buf) else process.stdout.write(buf) }
IoTDan/pxt
cli/hid.ts
TypeScript
ArrowFunction
(v: Uint8Array) => { }
IoTDan/pxt
cli/hid.ts
TypeScript
ArrowFunction
(e: Error) => { }
IoTDan/pxt
cli/hid.ts
TypeScript
ArrowFunction
(v: Buffer) => { //console.log("got", v.toString("hex")) this.onData(new Uint8Array(v)) }
IoTDan/pxt
cli/hid.ts
TypeScript
ArrowFunction
(v: Error) => this.onError(v)
IoTDan/pxt
cli/hid.ts
TypeScript
ArrowFunction
() => { let lst = [0] for (let i = 0; i < Math.max(64, pkt.length); ++i) lst.push(pkt[i] || 0) this.dev.write(lst) }
IoTDan/pxt
cli/hid.ts
TypeScript
ArrowFunction
e => { }
IoTDan/pxt
cli/hid.ts
TypeScript
ArrowFunction
() => { if (this.dev) { this.dev.close() this.dev = null } }
IoTDan/pxt
cli/hid.ts
TypeScript
ArrowFunction
() => { this.connect() }
IoTDan/pxt
cli/hid.ts
TypeScript
ClassDeclaration
export class HIDError extends Error { constructor(m: string) { super(m) this.message = m } }
IoTDan/pxt
cli/hid.ts
TypeScript
ClassDeclaration
export class HidIO implements HF2.PacketIO { dev: any; private path: string; onData = (v: Uint8Array) => { }; onEvent = (v: Uint8Array) => { }; onError = (e: Error) => { }; constructor(private requestedPath: string) { this.connect() } private connect() { U.assert(requ...
IoTDan/pxt
cli/hid.ts
TypeScript
InterfaceDeclaration
export interface HidDevice { vendorId: number; // 9025, productId: number; // 589, path: string; //.../UF2-HID@... serialNumber: string; // '', manufacturer: string; // 'Arduino', product: string; // 'Zero', release: number; // 0x4201 }
IoTDan/pxt
cli/hid.ts
TypeScript
MethodDeclaration
private connect() { U.assert(requireHID(false)) if (this.requestedPath == null) { let devs = getHF2Devices() if (devs.length == 0) throw new HIDError("no devices found") this.path = devs[0].path } else { this.path = this.requestedP...
IoTDan/pxt
cli/hid.ts
TypeScript
MethodDeclaration
sendPacketAsync(pkt: Uint8Array): Promise<void> { //console.log("SEND: " + new Buffer(pkt).toString("hex")) return Promise.resolve() .then(() => { let lst = [0] for (let i = 0; i < Math.max(64, pkt.length); ++i) lst.push(pkt[i] || 0) ...
IoTDan/pxt
cli/hid.ts
TypeScript
MethodDeclaration
error(msg: string): any { let fullmsg = "HID error on " + this.path + ": " + msg console.error(fullmsg) throw new HIDError(fullmsg) }
IoTDan/pxt
cli/hid.ts
TypeScript
MethodDeclaration
disconnectAsync(): Promise<void> { if (!this.dev) return Promise.resolve() // see https://github.com/node-hid/node-hid/issues/61 this.dev.removeAllListeners("data"); this.dev.removeAllListeners("error"); let pkt = new Uint8Array([0x48]) this.sendPacketAsync(pkt).catch(e...
IoTDan/pxt
cli/hid.ts
TypeScript
MethodDeclaration
reconnectAsync(): Promise<void> { return this.disconnectAsync() .then(() => { this.connect() }) }
IoTDan/pxt
cli/hid.ts
TypeScript
ArrowFunction
async (resolve, reject) => { try { const mocha = this._createMocha() this._setupFiles(mocha) mocha.run((failures: any) => { resolve(failures ? 1 : 0) }) } catch(e) { console.error(e) ...
yoichiro/actions-tools
src/testing.ts
TypeScript
ArrowFunction
(failures: any) => { resolve(failures ? 1 : 0) }
yoichiro/actions-tools
src/testing.ts
TypeScript
ArrowFunction
path => { return path.endsWith("test.js") }
yoichiro/actions-tools
src/testing.ts
TypeScript
ArrowFunction
path => { mocha.addFile(path) }
yoichiro/actions-tools
src/testing.ts
TypeScript
ClassDeclaration
export class Testing { static _instance: Testing _target: string _conversation: Conversation _report: string constructor(conversation: Conversation, target: string, report: string) { this._conversation = conversation this._target = target this._report = report } ...
yoichiro/actions-tools
src/testing.ts
TypeScript
MethodDeclaration
static createInstance(conversation: Conversation, target: string, report: string): Testing { if (!Testing._instance) { Testing._instance = new Testing(conversation, target, report) } return Testing._instance }
yoichiro/actions-tools
src/testing.ts
TypeScript
MethodDeclaration
static getInstance(): Testing { return Testing._instance }
yoichiro/actions-tools
src/testing.ts
TypeScript
MethodDeclaration
async start(): Promise<number> { return new Promise<number>(async (resolve, reject) => { try { const mocha = this._createMocha() this._setupFiles(mocha) mocha.run((failures: any) => { resolve(failures ? 1 : 0) }) ...
yoichiro/actions-tools
src/testing.ts
TypeScript
MethodDeclaration
_createMocha(): any { return new Mocha({ timeout: 10000, reporter: this._report, }) }
yoichiro/actions-tools
src/testing.ts
TypeScript
MethodDeclaration
_setupFiles(mocha: any): void { const resolvedPath = path.resolve(this._target) if (fs.statSync(resolvedPath).isDirectory()) { fs.readdirSync(resolvedPath).filter(path => { return path.endsWith("test.js") }).forEach(path => { mocha.addFile(path) ...
yoichiro/actions-tools
src/testing.ts
TypeScript
MethodDeclaration
static getConversation(): Conversation { return Testing.getInstance()._conversation }
yoichiro/actions-tools
src/testing.ts
TypeScript
InterfaceDeclaration
export interface SlickstreamRecommendationsService extends SosService { getRecommendations(options?: GetRecommendationOptions): Promise<PageRecommendations>; }
slickstream/engagement-services
esm/recommendations-service.d.ts
TypeScript
InterfaceDeclaration
export interface PageRecommendations { pages: PageListing; nextPage?(): Promise<PageListing>; }
slickstream/engagement-services
esm/recommendations-service.d.ts
TypeScript
InterfaceDeclaration
export interface GetRecommendationOptions { countPerPage?: number; type?: PageRecommendationsType; categoryMatchPreferred?: boolean; pageDescriptors?: PageDescriptorOptions; usePinnedItem?: boolean; }
slickstream/engagement-services
esm/recommendations-service.d.ts
TypeScript
TypeAliasDeclaration
export declare type PageRecommendationsType = 'auto' | 'related' | 'popular' | 'recent';
slickstream/engagement-services
esm/recommendations-service.d.ts
TypeScript
FunctionDeclaration
/** * 剪裁图片 */ export declare function clipImage(sourceImg: ImageInfo, props: RoundRectIncome): (ctx: Context) => void;
QiYuOr2/canvas-dsl
example/utils/canvas-dsl/render/components/img.d.ts
TypeScript
ClassDeclaration
/** * The TreeWalker object represents the nodes of a document subtree and a position within them. */ export default class TreeWalker { public root: INode = null; public whatToShow = -1; public filter: INodeFilter = null; public currentNode: INode = null; /** * Constructor. * * @param root Root. * @para...
dkocsis-emarsys/happy-dom
packages/happy-dom/src/tree-walker/TreeWalker.ts
TypeScript
MethodDeclaration
/** * Moves the current Node to the next visible node in the document order. * * @return Current node. */ public nextNode(): INode { if (!this.firstChild()) { while (!this.nextSibling() && this.parentNode()) {} this.currentNode = this.currentNode === this.root ? null : this.currentNode || null; } re...
dkocsis-emarsys/happy-dom
packages/happy-dom/src/tree-walker/TreeWalker.ts
TypeScript
MethodDeclaration
/** * Moves the current Node to the previous visible node in the document order, and returns the found node. It also moves the current node to this one. If no such node exists, or if it is before that the root node defined at the object construction, returns null and the current node is not changed. * * @return C...
dkocsis-emarsys/happy-dom
packages/happy-dom/src/tree-walker/TreeWalker.ts
TypeScript
MethodDeclaration
/** * Moves the current Node to the first visible ancestor node in the document order, and returns the found node. It also moves the current node to this one. If no such node exists, or if it is before that the root node defined at the object construction, returns null and the current node is not changed. * * @re...
dkocsis-emarsys/happy-dom
packages/happy-dom/src/tree-walker/TreeWalker.ts
TypeScript
MethodDeclaration
/** * Moves the current Node to the first visible child of the current node, and returns the found child. It also moves the current node to this child. If no such child exists, returns null and the current node is not changed. * * @return Current node. */ public firstChild(): INode { const childNodes = this.c...
dkocsis-emarsys/happy-dom
packages/happy-dom/src/tree-walker/TreeWalker.ts
TypeScript
MethodDeclaration
/** * Moves the current Node to the last visible child of the current node, and returns the found child. It also moves the current node to this child. If no such child exists, null is returned and the current node is not changed. * * @return Current node. */ public lastChild(): INode { const childNodes = this...
dkocsis-emarsys/happy-dom
packages/happy-dom/src/tree-walker/TreeWalker.ts
TypeScript
MethodDeclaration
/** * Moves the current Node to its previous sibling, if any, and returns the found sibling. If there is no such node, return null and the current node is not changed. * * @return Current node. */ public previousSibling(): INode { if (this.currentNode !== this.root && this.currentNode) { const siblings = t...
dkocsis-emarsys/happy-dom
packages/happy-dom/src/tree-walker/TreeWalker.ts
TypeScript
MethodDeclaration
/** * Moves the current Node to its next sibling, if any, and returns the found sibling. If there is no such node, null is returned and the current node is not changed. * * @return Current node. */ public nextSibling(): INode { if (this.currentNode !== this.root && this.currentNode) { const siblings = this...
dkocsis-emarsys/happy-dom
packages/happy-dom/src/tree-walker/TreeWalker.ts
TypeScript
MethodDeclaration
/** * Filters a node. * * Based on solution: * https://gist.github.com/shawndumas/1132009 * * @param node Node. * @return Child nodes. */ private filterNode(node: INode): number { const mask = NodeFilterMask[node.nodeType]; if (mask && (this.whatToShow & mask) == 0) { return NodeFilter.FILTER_SK...
dkocsis-emarsys/happy-dom
packages/happy-dom/src/tree-walker/TreeWalker.ts
TypeScript
ArrowFunction
(context) => { const storeName = findNgRxStoreName(context) if (!storeName) return {} return { [`${pipeableSelect(storeName)}, ${storeSelect(storeName)}`]({ arguments: args, }: TSESTree.CallExpression) { args .filter( (node) => isLiteral(node...
Armenvardanyan95/eslint-plugin-ngrx
src/rules/store/use-selector-in-select.ts
TypeScript
ArrowFunction
(node) => isLiteral(node) || isArrowFunctionExpression(node) || isFunctionExpression(node)
Armenvardanyan95/eslint-plugin-ngrx
src/rules/store/use-selector-in-select.ts
TypeScript
ArrowFunction
(node) => context.report({ node, messageId, })
Armenvardanyan95/eslint-plugin-ngrx
src/rules/store/use-selector-in-select.ts
TypeScript
TypeAliasDeclaration
export type MessageIds = typeof messageId
Armenvardanyan95/eslint-plugin-ngrx
src/rules/store/use-selector-in-select.ts
TypeScript
TypeAliasDeclaration
type Options = []
Armenvardanyan95/eslint-plugin-ngrx
src/rules/store/use-selector-in-select.ts
TypeScript
MethodDeclaration
[`${pipeableSelect(storeName)}, ${storeSelect(storeName)}`]({ arguments: args, }: TSESTree.CallExpression) { args .filter( (node) => isLiteral(node) || isArrowFunctionExpression(node) || isFunctionExpression(node), ) ...
Armenvardanyan95/eslint-plugin-ngrx
src/rules/store/use-selector-in-select.ts
TypeScript
ArrowFunction
() => { let fixture: ComponentFixture<FileUploadingListRowComponent>; let component: FileUploadingListRowComponent; let file = new FileModel(<File> { name: 'fake-name' }); beforeEach(() => { TestBed.configureTestingModule({ imports: [ UploadModule ] ...
Sphereon/alfresco-ng2-components
lib/content-services/upload/components/file-uploading-list-row.component.spec.ts
TypeScript
ArrowFunction
() => { TestBed.configureTestingModule({ imports: [ UploadModule ] }).compileComponents(); }
Sphereon/alfresco-ng2-components
lib/content-services/upload/components/file-uploading-list-row.component.spec.ts
TypeScript
ArrowFunction
() => { fixture = TestBed.createComponent(FileUploadingListRowComponent); component = fixture.componentInstance; component.file = file; }
Sphereon/alfresco-ng2-components
lib/content-services/upload/components/file-uploading-list-row.component.spec.ts
TypeScript
ArrowFunction
() => { spyOn(component.cancel, 'emit'); component.onCancel(component.file); expect(component.cancel.emit).toHaveBeenCalledWith(file); }
Sphereon/alfresco-ng2-components
lib/content-services/upload/components/file-uploading-list-row.component.spec.ts
TypeScript
ArrowFunction
() => { spyOn(component.remove, 'emit'); component.onRemove(component.file); expect(component.remove.emit).toHaveBeenCalledWith(file); }
Sphereon/alfresco-ng2-components
lib/content-services/upload/components/file-uploading-list-row.component.spec.ts
TypeScript
FunctionDeclaration
/** * Compile a directive for the render3 runtime as defined by the `R3DirectiveMetadata`. */ export function compileDirectiveFromMetadata( meta: R3DirectiveMetadata, constantPool: ConstantPool, bindingParser: BindingParser): R3CompiledExpression { const definitionMap = baseDirectiveFields(meta, constantPoo...
017-Ddas/angular
packages/compiler/src/render3/view/compiler.ts
TypeScript
FunctionDeclaration
/** * Compile a component for the render3 runtime as defined by the `R3ComponentMetadata`. */ export function compileComponentFromMetadata( meta: R3ComponentMetadata, constantPool: ConstantPool, bindingParser: BindingParser): R3CompiledExpression { const definitionMap = baseDirectiveFields(meta, constantPoo...
017-Ddas/angular
packages/compiler/src/render3/view/compiler.ts
TypeScript
FunctionDeclaration
/** * Creates the type specification from the component meta. This type is inserted into .d.ts files * to be consumed by upstream compilations. */ export function createComponentType(meta: R3ComponentMetadata): o.Type { const typeParams = createDirectiveTypeParams(meta); typeParams.push(stringArrayAsType(meta.te...
017-Ddas/angular
packages/compiler/src/render3/view/compiler.ts
TypeScript
FunctionDeclaration
/** * Compiles the array literal of declarations into an expression according to the provided emit * mode. */ function compileDeclarationList( list: o.LiteralArrayExpr, mode: DeclarationListEmitMode): o.Expression { switch (mode) { case DeclarationListEmitMode.Direct: // directives: [MyDir], re...
017-Ddas/angular
packages/compiler/src/render3/view/compiler.ts
TypeScript
FunctionDeclaration
function prepareQueryParams(query: R3QueryMetadata, constantPool: ConstantPool): o.Expression[] { const parameters = [getQueryPredicate(query, constantPool), o.literal(toQueryFlags(query))]; if (query.read) { parameters.push(query.read); } return parameters; }
017-Ddas/angular
packages/compiler/src/render3/view/compiler.ts
TypeScript
FunctionDeclaration
/** * Translates query flags into `TQueryFlags` type in packages/core/src/render3/interfaces/query.ts * @param query */ function toQueryFlags(query: R3QueryMetadata): number { return (query.descendants ? QueryFlags.descendants : QueryFlags.none) | (query.static ? QueryFlags.isStatic : QueryFlags.none) | ...
017-Ddas/angular
packages/compiler/src/render3/view/compiler.ts
TypeScript
FunctionDeclaration
// Define and update any content queries function createContentQueriesFunction( queries: R3QueryMetadata[], constantPool: ConstantPool, name?: string): o.Expression { const createStatements: o.Statement[] = []; const updateStatements: o.Statement[] = []; const tempAllocator = temporaryAllocator(updateStatemen...
017-Ddas/angular
packages/compiler/src/render3/view/compiler.ts
TypeScript
FunctionDeclaration
export function createDirectiveTypeParams(meta: R3DirectiveMetadata): o.Type[] { // On the type side, remove newlines from the selector as it will need to fit into a TypeScript // string literal, which must be on one line. const selectorForType = meta.selector !== null ? meta.selector.replace(/\n/g, '') : null; ...
017-Ddas/angular
packages/compiler/src/render3/view/compiler.ts
TypeScript
FunctionDeclaration
/** * Creates the type specification from the directive meta. This type is inserted into .d.ts files * to be consumed by upstream compilations. */ export function createDirectiveType(meta: R3DirectiveMetadata): o.Type { const typeParams = createDirectiveTypeParams(meta); return o.expressionType(o.importExpr(R3.D...
017-Ddas/angular
packages/compiler/src/render3/view/compiler.ts
TypeScript
FunctionDeclaration
// Define and update any view queries function createViewQueriesFunction( viewQueries: R3QueryMetadata[], constantPool: ConstantPool, name?: string): o.Expression { const createStatements: o.Statement[] = []; const updateStatements: o.Statement[] = []; const tempAllocator = temporaryAllocator(updateStatements...
017-Ddas/angular
packages/compiler/src/render3/view/compiler.ts
TypeScript
FunctionDeclaration
// Return a host binding function or null if one is not necessary. function createHostBindingsFunction( hostBindingsMetadata: R3HostMetadata, typeSourceSpan: ParseSourceSpan, bindingParser: BindingParser, constantPool: ConstantPool, selector: string, name: string, definitionMap: DefinitionMap): o.Expression...
017-Ddas/angular
packages/compiler/src/render3/view/compiler.ts
TypeScript
FunctionDeclaration
function bindingFn(implicit: any, value: AST) { return convertPropertyBinding( null, implicit, value, 'b', () => error('Unexpected interpolation')); }
017-Ddas/angular
packages/compiler/src/render3/view/compiler.ts
TypeScript
FunctionDeclaration
/** * Verifies host bindings and returns the list of errors (if any). Empty array indicates that a * given set of host bindings has no errors. * * @param bindings set of host bindings to verify. * @param sourceSpan source span where host bindings were defined. * @returns array of errors associated with a given se...
017-Ddas/angular
packages/compiler/src/render3/view/compiler.ts
TypeScript
ArrowFunction
dir => dir.type
017-Ddas/angular
packages/compiler/src/render3/view/compiler.ts
TypeScript
ArrowFunction
(query: R3QueryMetadata) => { // creation, e.g. r3.viewQuery(somePredicate, true); const queryDefinition = o.importExpr(R3.viewQuery).callFn(prepareQueryParams(query, constantPool)); createStatements.push(queryDefinition.toStmt()); // update, e.g. (r3.queryRefresh(tmp = r3.loadQuery()) && (ctx...
017-Ddas/angular
packages/compiler/src/render3/view/compiler.ts
TypeScript
ArrowFunction
(binding: ParsedProperty) => { // resolve literal arrays and literal objects const value = binding.expression.visit(getValueConverter()); const bindingExpr = bindingFn(bindingContext, value); const {bindingName, instruction, isAttribute} = getBindingNameAndInstruction(binding); const securityCont...
017-Ddas/angular
packages/compiler/src/render3/view/compiler.ts
TypeScript
EnumDeclaration
/** * A set of flags to be used with Queries. * * NOTE: Ensure changes here are in sync with `packages/core/src/render3/interfaces/query.ts` */ export const enum QueryFlags { /** * No flags */ none = 0b0000, /** * Whether or not the query should descend into children. */ descendants = 0b0001, ...
017-Ddas/angular
packages/compiler/src/render3/view/compiler.ts
TypeScript
ArrowFunction
(order) => this._orderFactory(order)
CodeKits/ever
packages/common-angular/src/routers/order-router.service.ts
TypeScript
ClassDeclaration
@Injectable() export class OrderRouter implements IOrderRouter { private readonly router: Router; constructor(routerFactory: RouterFactory) { this.router = routerFactory.create('order'); } get(id: string, options?: IOrderRouterGetOptions): Observable<Order> { return this.router .runAndObserve<IOrder>('get...
CodeKits/ever
packages/common-angular/src/routers/order-router.service.ts
TypeScript
MethodDeclaration
get(id: string, options?: IOrderRouterGetOptions): Observable<Order> { return this.router .runAndObserve<IOrder>('get', id, options) .pipe(map((order) => this._orderFactory(order))); }
CodeKits/ever
packages/common-angular/src/routers/order-router.service.ts
TypeScript
MethodDeclaration
async confirm(orderId: string): Promise<Order> { const order = await this.router.run<IOrder>('confirm', orderId); return this._orderFactory(order); }
CodeKits/ever
packages/common-angular/src/routers/order-router.service.ts
TypeScript
MethodDeclaration
async complete(orderId: string): Promise<Order> { const order = await this.router.run<IOrder>('complete', orderId); return this._orderFactory(order); }
CodeKits/ever
packages/common-angular/src/routers/order-router.service.ts
TypeScript
MethodDeclaration
async updateCarrierStatus( orderId: string, status: OrderCarrierStatus ): Promise<Order> { const order = await this.router.run<IOrder>( 'updateCarrierStatus', orderId, status ); return this._orderFactory(order); }
CodeKits/ever
packages/common-angular/src/routers/order-router.service.ts
TypeScript
MethodDeclaration
async updateWarehouseStatus( orderId: string, status: OrderWarehouseStatus ): Promise<Order> { const order = await this.router.run<IOrder>( 'updateWarehouseStatus', orderId, status ); return this._orderFactory(order); }
CodeKits/ever
packages/common-angular/src/routers/order-router.service.ts
TypeScript
MethodDeclaration
async payWithStripe(orderId: string, cardId: string): Promise<Order> { const order = await this.router.run<IOrder>( 'payWithStripe', orderId, cardId ); return this._orderFactory(order); }
CodeKits/ever
packages/common-angular/src/routers/order-router.service.ts
TypeScript
MethodDeclaration
async refundWithStripe(orderId: string): Promise<Order> { const order = await this.router.run<IOrder>( 'refundWithStripe', orderId ); return this._orderFactory(order); }
CodeKits/ever
packages/common-angular/src/routers/order-router.service.ts
TypeScript
MethodDeclaration
async addProducts( orderId: Order['id'], products, warehouseId: Warehouse['id'] ): Promise<Order> { const order = await this.router.run<IOrder>( 'addProducts', orderId, products, warehouseId ); return this._orderFactory(order); }
CodeKits/ever
packages/common-angular/src/routers/order-router.service.ts
TypeScript
MethodDeclaration
async decreaseOrderProducts( orderId: Order['id'], products, warehouseId: Warehouse['id'] ): Promise<Order> { const order = await this.router.run<IOrder>( 'decreaseOrderProducts', orderId, products, warehouseId ); return this._orderFactory(order); }
CodeKits/ever
packages/common-angular/src/routers/order-router.service.ts
TypeScript
MethodDeclaration
async removeProducts( orderId: Order['id'], productsIds: string[] ): Promise<Order> { const order = await this.router.run<IOrder>( 'removeProducts', orderId, productsIds ); return this._orderFactory(order); }
CodeKits/ever
packages/common-angular/src/routers/order-router.service.ts
TypeScript
MethodDeclaration
async addProductComment( orderId: Order['id'], productId: string, comment: string ): Promise<Order> { const order = await this.router.run<IOrder>( 'addProductComment', orderId, productId, comment ); return this._orderFactory(order); }
CodeKits/ever
packages/common-angular/src/routers/order-router.service.ts
TypeScript
MethodDeclaration
protected _orderFactory(order: IOrder) { return order == null ? null : new Order(order); }
CodeKits/ever
packages/common-angular/src/routers/order-router.service.ts
TypeScript
TypeAliasDeclaration
export type ServiceProviderImageCategory = 'Logo' | 'Face' | 'Exterior' | 'Interior' | 'Satellite';
sosoHero/demo
src/app/models/service-provider-image-category.ts
TypeScript
ArrowFunction
() => { const WIKI_NOTATION = `\\* aaa \\# bbb \\- ccc`; checkParseEncodeRoundTrips( WIKI_NOTATION, defaultSchema, WIKI_NOTATION, doc( p( '&#42; aaa', hardBreak(), '&#35; bbb', hardBreak(), '&#45; ccc', hardBreak(), ...
pioug/atlassian-frontend-mirror
editor/editor-wikimarkup-transformer/src/__tests__/unit/jira-tests/list.ts
TypeScript
ArrowFunction
() => { const WIKI_NOTATION = `* aaa * bbb * ccc * ddd * eee`; checkParseEncodeRoundTrips( WIKI_NOTATION, defaultSchema, WIKI_NOTATION, doc( ul( li(p('aaa')), li(p('bbb')), li(p('ccc')), li(p('ddd')), li(p('eee')), ), ...
pioug/atlassian-frontend-mirror
editor/editor-wikimarkup-transformer/src/__tests__/unit/jira-tests/list.ts
TypeScript
ArrowFunction
() => { const WIKI_NOTATION = `- aaa - bbb - ccc - ddd - eee`; checkParseEncodeRoundTrips( WIKI_NOTATION, defaultSchema, WIKI_NOTATION, doc( ul( li(p('aaa')), li(p('bbb')), li(p('ccc')), li(p('ddd')), li(p('eee')), ), ...
pioug/atlassian-frontend-mirror
editor/editor-wikimarkup-transformer/src/__tests__/unit/jira-tests/list.ts
TypeScript
ArrowFunction
() => { const WIKI_NOTATION = `* aaa * bbb * ccc * ddd * eee * fff`; checkParseEncodeRoundTrips( WIKI_NOTATION, defaultSchema, WIKI_NOTATION, doc( ul(li(p('aaa')), li(p('bbb')), li(p('ccc'))), ul(li(p('ddd')), li(p('eee')), li(p('fff'))), ), ); }
pioug/atlassian-frontend-mirror
editor/editor-wikimarkup-transformer/src/__tests__/unit/jira-tests/list.ts
TypeScript
ArrowFunction
() => { const WIKI_NOTATION = `# one # two ## two-one ## two-two # three # four ## four-one`; checkParseEncodeRoundTrips( WIKI_NOTATION, defaultSchema, WIKI_NOTATION, doc( ol( li(p('two'), ol(li(p('two-one')), li(p('two-two')))), li(p('three')), li...
pioug/atlassian-frontend-mirror
editor/editor-wikimarkup-transformer/src/__tests__/unit/jira-tests/list.ts
TypeScript
ArrowFunction
() => { const WIKI_NOTATION = `* aaa * bbb * ccc * ddd * eee`; checkParseEncodeRoundTrips( WIKI_NOTATION, defaultSchema, WIKI_NOTATION, doc( ul( li(p('aaa')), li(p('bbb')), li(p('ccc')), li(p('ddd')), li(p('eee')), ),...
pioug/atlassian-frontend-mirror
editor/editor-wikimarkup-transformer/src/__tests__/unit/jira-tests/list.ts
TypeScript
ArrowFunction
() => { const WIKI_NOTATION = `* aaa * bbb * ccc *ddd *eee * ffff ** ggggg`; checkParseEncodeRoundTrips( WIKI_NOTATION, defaultSchema, WIKI_NOTATION, doc( ul( li(p('aaa')), li(p('bbb')), li(p('ccc', hardBreak(), 'ddd', hardBreak(), 'eee')), ...
pioug/atlassian-frontend-mirror
editor/editor-wikimarkup-transformer/src/__tests__/unit/jira-tests/list.ts
TypeScript
ArrowFunction
() => { const WIKI_NOTATION = `- aaa - bbb \\\\| another bbb - ccc - ddd`; checkParseEncodeRoundTrips( WIKI_NOTATION, defaultSchema, WIKI_NOTATION, doc( ul( li(p('aaa')), li(p('bbb &#124; another bbb')), li(p('ccc')), li(p('ddd')), ...
pioug/atlassian-frontend-mirror
editor/editor-wikimarkup-transformer/src/__tests__/unit/jira-tests/list.ts
TypeScript
ArrowFunction
() => { const WIKI_NOTATION = `some texts here - jobs to do * more jobs to do`; checkParseEncodeRoundTrips( WIKI_NOTATION, defaultSchema, WIKI_NOTATION, doc( p('some texts here'), ul(li(p('jobs to do'))), ul(li(p('more jobs to do'))), ), ); }
pioug/atlassian-frontend-mirror
editor/editor-wikimarkup-transformer/src/__tests__/unit/jira-tests/list.ts
TypeScript
ArrowFunction
() => { const WIKI_NOTATION = `Just a list: # first item # second item ** another1 item ** another2 item # unknown item`; checkParseEncodeRoundTrips( WIKI_NOTATION, defaultSchema, WIKI_NOTATION, doc( p('Just a list:'), ol( li(p('first item')), li( ...
pioug/atlassian-frontend-mirror
editor/editor-wikimarkup-transformer/src/__tests__/unit/jira-tests/list.ts
TypeScript
ArrowFunction
() => { const WIKI_NOTATION = `** An item`; checkParseEncodeRoundTrips( WIKI_NOTATION, defaultSchema, WIKI_NOTATION, doc(ul(li(ul(li(p('An item')))))), ); }
pioug/atlassian-frontend-mirror
editor/editor-wikimarkup-transformer/src/__tests__/unit/jira-tests/list.ts
TypeScript