type
stringclasses
7 values
content
stringlengths
4
9.55k
repo
stringlengths
7
96
path
stringlengths
4
178
language
stringclasses
1 value
ArrowFunction
(key, index) => processMetaData({ pubkey: key, account: array[index] }, updateState)
01Clarian/metaplex
js/packages/common/src/contexts/meta/loadAccounts.ts
TypeScript
ArrowFunction
(state: MetaState): UpdateStateValueFunc<MetaState> => (prop, key, value) => { if (prop === 'store') { state[prop] = value; } else if (prop === 'metadata') { state.metadata.push(value); } else if (prop === 'storeIndexer') { state.storeIndexer = state.storeIndexer.filter( p => p....
01Clarian/metaplex
js/packages/common/src/contexts/meta/loadAccounts.ts
TypeScript
ArrowFunction
(prop, key, value) => { if (prop === 'store') { state[prop] = value; } else if (prop === 'metadata') { state.metadata.push(value); } else if (prop === 'storeIndexer') { state.storeIndexer = state.storeIndexer.filter( p => p.info.page.toNumber() != value.info.page.toNumber(), ...
01Clarian/metaplex
js/packages/common/src/contexts/meta/loadAccounts.ts
TypeScript
ArrowFunction
p => p.info.page.toNumber() != value.info.page.toNumber()
01Clarian/metaplex
js/packages/common/src/contexts/meta/loadAccounts.ts
TypeScript
ArrowFunction
(a, b) => a.info.page.sub(b.info.page).toNumber()
01Clarian/metaplex
js/packages/common/src/contexts/meta/loadAccounts.ts
TypeScript
ArrowFunction
({ pubkey }) => pubkey === value.pubkey
01Clarian/metaplex
js/packages/common/src/contexts/meta/loadAccounts.ts
TypeScript
ArrowFunction
(updater: UpdateStateValueFunc) => (fn: ProcessAccountsFunc) => async (accounts: AccountAndPubkey[]) => { await createPipelineExecutor( accounts.values(), account => fn(account, updater), { sequence: 10, delay: 1, jobsCount: 3, }, ); }
01Clarian/metaplex
js/packages/common/src/contexts/meta/loadAccounts.ts
TypeScript
ArrowFunction
(fn: ProcessAccountsFunc) => async (accounts: AccountAndPubkey[]) => { await createPipelineExecutor( accounts.values(), account => fn(account, updater), { sequence: 10, delay: 1, jobsCount: 3, }, ); }
01Clarian/metaplex
js/packages/common/src/contexts/meta/loadAccounts.ts
TypeScript
ArrowFunction
async (accounts: AccountAndPubkey[]) => { await createPipelineExecutor( accounts.values(), account => fn(account, updater), { sequence: 10, delay: 1, jobsCount: 3, }, ); }
01Clarian/metaplex
js/packages/common/src/contexts/meta/loadAccounts.ts
TypeScript
ArrowFunction
account => fn(account, updater)
01Clarian/metaplex
js/packages/common/src/contexts/meta/loadAccounts.ts
TypeScript
ArrowFunction
async (state: MetaState) => { const values = Object.values(state.metadataByMint); for (const metadata of values) { await metadataByMintUpdater(metadata, state); } }
01Clarian/metaplex
js/packages/common/src/contexts/meta/loadAccounts.ts
TypeScript
ArrowFunction
async ( metadata: ParsedAccount<Metadata>, state: MetaState, ) => { const key = metadata.info.mint; if (isMetadataPartOfStore(metadata, state.whitelistedCreatorsByCreator)) { await metadata.info.init(); const masterEditionKey = metadata.info?.masterEdition; if (masterEditionKey) { state.metad...
01Clarian/metaplex
js/packages/common/src/contexts/meta/loadAccounts.ts
TypeScript
ArrowFunction
({ pubkey }) => metadata.pubkey === pubkey
01Clarian/metaplex
js/packages/common/src/contexts/meta/loadAccounts.ts
TypeScript
ArrowFunction
async ( metadata: ParsedAccount<Metadata>, whitelistedCreators: Record<string, ParsedAccount<WhitelistedCreator>>, setter: UpdateStateValueFunc, ) => { if (isMetadataPartOfStore(metadata, whitelistedCreators)) { await metadata.info.init(); setter('metadataByMint', metadata.info.mint, metadata); set...
01Clarian/metaplex
js/packages/common/src/contexts/meta/loadAccounts.ts
TypeScript
TypeAliasDeclaration
type MultipleAccounts = UnPromise<ReturnType<typeof getMultipleAccounts>>;
01Clarian/metaplex
js/packages/common/src/contexts/meta/loadAccounts.ts
TypeScript
ArrowFunction
err => { throw err.message; }
6enny6/oldschoolbot
src/commands/OSRS_Accounts/diary.ts
TypeScript
ArrowFunction
key => titles[key]
6enny6/oldschoolbot
src/commands/OSRS_Accounts/diary.ts
TypeScript
ArrowFunction
diary => this.check(skills, diaryRequirements[diary])
6enny6/oldschoolbot
src/commands/OSRS_Accounts/diary.ts
TypeScript
ClassDeclaration
export default class extends BotCommand { public constructor(store: CommandStore, file: string[], directory: string) { super(store, file, directory, { cooldown: 2, aliases: ['d'], description: 'Check which diaries your account has the required stats to complete (BOLD = boostable)', usage: '(username...
6enny6/oldschoolbot
src/commands/OSRS_Accounts/diary.ts
TypeScript
MethodDeclaration
async run(msg: KlasaMessage, [username]: [string]) { const { skills } = await Hiscores.fetch(username).catch(err => { throw err.message; }); const diaryNames = objectKeys(diaryRequirements) .map(key => titles[key]) .join('\n'); const canComplete = objectKeys(diaryRequirements) .map(diary => this....
6enny6/oldschoolbot
src/commands/OSRS_Accounts/diary.ts
TypeScript
MethodDeclaration
check(skills: SkillsScore, diary: typeof diaryRequirements[keyof typeof diaryRequirements]) { const levelMap = ['Easy', 'Medium', 'Hard', 'Elite']; let boostVar = 0; const canComplete = []; for (let i = 0; i < 4; i++) { for (const req of objectKeys(diary)) { if (req !== 'construction') { const stat...
6enny6/oldschoolbot
src/commands/OSRS_Accounts/diary.ts
TypeScript
ArrowFunction
({color, title}) => ( <Container> <Title color={color}>{title}</Title> </Container>
fabiotabalipa/trialofthespirit
src/components/Header/component.tsx
TypeScript
InterfaceDeclaration
interface Props { color: string; title: string; }
fabiotabalipa/trialofthespirit
src/components/Header/component.tsx
TypeScript
FunctionDeclaration
/* * Helper function used by the IndexHtmlWebpackPlugin. * Can also be directly used by builder, e. g. in order to generate an index.html * after processing several configurations in order to build different sets of * bundles for differential serving. */ export async function augmentIndexHtml(params: AugmentIndexH...
AdrianSalas500/angular-cli
packages/angular_devkit/build_angular/src/utils/index-file/augment-index-html.ts
TypeScript
FunctionDeclaration
function generateSriAttributes(content: string): string { const algo = 'sha384'; const hash = createHash(algo).update(content, 'utf8').digest('base64'); return `integrity="${algo}-${hash}"`; }
AdrianSalas500/angular-cli
packages/angular_devkit/build_angular/src/utils/index-file/augment-index-html.ts
TypeScript
FunctionDeclaration
function updateAttribute( tag: { attrs: { name: string; value: string }[] }, name: string, value: string, ): void { const index = tag.attrs.findIndex((a) => a.name === name); const newValue = { name, value }; if (index === -1) { tag.attrs.push(newValue); } else { tag.attrs[index] = newValue; }...
AdrianSalas500/angular-cli
packages/angular_devkit/build_angular/src/utils/index-file/augment-index-html.ts
TypeScript
FunctionDeclaration
function isString(value: unknown): value is string { return typeof value === 'string'; }
AdrianSalas500/angular-cli
packages/angular_devkit/build_angular/src/utils/index-file/augment-index-html.ts
TypeScript
ArrowFunction
(tag) => { switch (tag.tagName) { case 'html': // Adjust document locale if specified if (isString(lang)) { updateAttribute(tag, 'lang', lang); } break; case 'head': // Base href should be added before any link, meta tags if ...
AdrianSalas500/angular-cli
packages/angular_devkit/build_angular/src/utils/index-file/augment-index-html.ts
TypeScript
ArrowFunction
(tag) => { switch (tag.tagName) { case 'head': for (const linkTag of linkTags) { rewriter.emitRaw(linkTag); } linkTags = []; break; case 'body': // Add script tags for (const scriptTag of scriptTags) { rewriter.e...
AdrianSalas500/angular-cli
packages/angular_devkit/build_angular/src/utils/index-file/augment-index-html.ts
TypeScript
ArrowFunction
(a) => a.name === name
AdrianSalas500/angular-cli
packages/angular_devkit/build_angular/src/utils/index-file/augment-index-html.ts
TypeScript
InterfaceDeclaration
export interface AugmentIndexHtmlOptions { /* Input contents */ html: string; baseHref?: string; deployUrl?: string; sri: boolean; /** crossorigin attribute setting of elements that provide CORS support */ crossOrigin?: CrossOriginValue; /* * Files emitted by the build. */ files: FileInfo[]; ...
AdrianSalas500/angular-cli
packages/angular_devkit/build_angular/src/utils/index-file/augment-index-html.ts
TypeScript
InterfaceDeclaration
export interface FileInfo { file: string; name: string; extension: string; }
AdrianSalas500/angular-cli
packages/angular_devkit/build_angular/src/utils/index-file/augment-index-html.ts
TypeScript
TypeAliasDeclaration
export type LoadOutputFileFunctionType = (file: string) => Promise<string>;
AdrianSalas500/angular-cli
packages/angular_devkit/build_angular/src/utils/index-file/augment-index-html.ts
TypeScript
TypeAliasDeclaration
export type CrossOriginValue = 'none' | 'anonymous' | 'use-credentials';
AdrianSalas500/angular-cli
packages/angular_devkit/build_angular/src/utils/index-file/augment-index-html.ts
TypeScript
TypeAliasDeclaration
export type Entrypoint = [name: string, isModule: boolean];
AdrianSalas500/angular-cli
packages/angular_devkit/build_angular/src/utils/index-file/augment-index-html.ts
TypeScript
ArrowFunction
item => new TextRegion( item.regionId, imageId, Region.parseFromPostgresPolygonString(item.region), item.label, User.newBaseUser(item.uploaderDisplayName, item.uploaderUsername), item.labelerDisplayName ? User.newBaseUser(i...
thanhdatwg/OCR-Labeler-Queue-Exporter
src/models/daos/region-dao.ts
TypeScript
ArrowFunction
() => "?"
thanhdatwg/OCR-Labeler-Queue-Exporter
src/models/daos/region-dao.ts
TypeScript
ArrowFunction
item => new TextRegion( item.regionId, item.imageId, Region.parseFromPostgresPolygonString(item.region), item.label, User.newBaseUser(item.uploaderDisplayName, item.uploaderUsername), item.labelerDisplayName ? User.newBaseU...
thanhdatwg/OCR-Labeler-Queue-Exporter
src/models/daos/region-dao.ts
TypeScript
ClassDeclaration
class TextRegionDao { private constructor() { } private static readonly INSTANCE = new TextRegionDao(); public static getInstance(): TextRegionDao { return this.INSTANCE; } public async getTextRegion(regionId: string): Promise<TextRegion> { try { const result = await da...
thanhdatwg/OCR-Labeler-Queue-Exporter
src/models/daos/region-dao.ts
TypeScript
MethodDeclaration
public static getInstance(): TextRegionDao { return this.INSTANCE; }
thanhdatwg/OCR-Labeler-Queue-Exporter
src/models/daos/region-dao.ts
TypeScript
MethodDeclaration
public async getTextRegion(regionId: string): Promise<TextRegion> { try { const result = await databaseConnection.oneOrNone( ` SELECT * FROM public."Regions" WHERE "Regions"."regionId" = $1; `, [regionId] ...
thanhdatwg/OCR-Labeler-Queue-Exporter
src/models/daos/region-dao.ts
TypeScript
MethodDeclaration
public async getTextRegionsOfImage(imageId: string): Promise<TextRegion[]> { try { const regions = await databaseConnection.any( ` SELECT "Regions"."regionId", "Regions"."region", "Regions"."label", "Uploader".usern...
thanhdatwg/OCR-Labeler-Queue-Exporter
src/models/daos/region-dao.ts
TypeScript
MethodDeclaration
public async getTextRegionsOfImageList(imageIds: string[]): Promise<TextRegion[]> { try { const regions = await databaseConnection.any(toOrdinal(` SELECT "TextRegions"."regionId", "TextRegions"."imageId", "TextRegions"."region", "TextRegions"."label", ...
thanhdatwg/OCR-Labeler-Queue-Exporter
src/models/daos/region-dao.ts
TypeScript
MethodDeclaration
public async getNumberOfUnlabeledRegion(imageId: string): Promise<number> { try { const result = await databaseConnection.one(` SELECT COUNT(*) FROM public."Regions" WHERE "Regions"."imageId" = $1 AND "Regions".label IS null; `, [imageId]); return +result.cou...
thanhdatwg/OCR-Labeler-Queue-Exporter
src/models/daos/region-dao.ts
TypeScript
InterfaceDeclaration
export interface Heartbeat { head: string height: number nickname: string peerId: string ip: string minerAddress: string }
lxj-my/filecoin-network-stats
backend/src/domain/Heartbeat.ts
TypeScript
ArrowFunction
(node: Node, parent: ElementContainer, root: ElementContainer) => { for (let childNode = node.firstChild, nextNode; childNode; childNode = nextNode) { nextNode = childNode.nextSibling; if (isTextNode(childNode) && childNode.data.trim().length > 0) { parent.textNodes.push(new TextContai...
1002753959/html2canvas
src/dom/node-parser.ts
TypeScript
ArrowFunction
(element: Element): ElementContainer => { if (isImageElement(element)) { return new ImageElementContainer(element); } if (isCanvasElement(element)) { return new CanvasElementContainer(element); } if (isSVGElement(element)) { return new SVGElementContainer(element); } ...
1002753959/html2canvas
src/dom/node-parser.ts
TypeScript
ArrowFunction
(element: HTMLElement): ElementContainer => { const container = createContainer(element); container.flags |= FLAGS.CREATES_REAL_STACKING_CONTEXT; parseNodeTree(element, container, container); return container; }
1002753959/html2canvas
src/dom/node-parser.ts
TypeScript
ArrowFunction
(node: Element, container: ElementContainer, root: ElementContainer): boolean => { return ( container.styles.isPositionedWithZIndex() || container.styles.opacity < 1 || container.styles.isTransformed() || (isBodyElement(node) && root.styles.isTransparent()) ); }
1002753959/html2canvas
src/dom/node-parser.ts
TypeScript
ArrowFunction
(styles: CSSParsedDeclaration): boolean => styles.isPositioned() || styles.isFloating()
1002753959/html2canvas
src/dom/node-parser.ts
TypeScript
ArrowFunction
(node: Node): node is Text => node.nodeType === Node.TEXT_NODE
1002753959/html2canvas
src/dom/node-parser.ts
TypeScript
ArrowFunction
(node: Node): node is Element => node.nodeType === Node.ELEMENT_NODE
1002753959/html2canvas
src/dom/node-parser.ts
TypeScript
ArrowFunction
(node: Node): node is HTMLElement => typeof (node as HTMLElement).style !== 'undefined'
1002753959/html2canvas
src/dom/node-parser.ts
TypeScript
ArrowFunction
(element: Element): element is SVGElement => typeof (element as SVGElement).className === 'object'
1002753959/html2canvas
src/dom/node-parser.ts
TypeScript
ArrowFunction
(node: Element): node is HTMLLIElement => node.tagName === 'LI'
1002753959/html2canvas
src/dom/node-parser.ts
TypeScript
ArrowFunction
(node: Element): node is HTMLOListElement => node.tagName === 'OL'
1002753959/html2canvas
src/dom/node-parser.ts
TypeScript
ArrowFunction
(node: Element): node is HTMLInputElement => node.tagName === 'INPUT'
1002753959/html2canvas
src/dom/node-parser.ts
TypeScript
ArrowFunction
(node: Element): node is HTMLHtmlElement => node.tagName === 'HTML'
1002753959/html2canvas
src/dom/node-parser.ts
TypeScript
ArrowFunction
(node: Element): node is SVGSVGElement => node.tagName === 'svg'
1002753959/html2canvas
src/dom/node-parser.ts
TypeScript
ArrowFunction
(node: Element): node is HTMLBodyElement => node.tagName === 'BODY'
1002753959/html2canvas
src/dom/node-parser.ts
TypeScript
ArrowFunction
(node: Element): node is HTMLCanvasElement => node.tagName === 'CANVAS'
1002753959/html2canvas
src/dom/node-parser.ts
TypeScript
ArrowFunction
(node: Element): node is HTMLImageElement => node.tagName === 'IMG'
1002753959/html2canvas
src/dom/node-parser.ts
TypeScript
ArrowFunction
(node: Element): node is HTMLIFrameElement => node.tagName === 'IFRAME'
1002753959/html2canvas
src/dom/node-parser.ts
TypeScript
ArrowFunction
(node: Element): node is HTMLStyleElement => node.tagName === 'STYLE'
1002753959/html2canvas
src/dom/node-parser.ts
TypeScript
ArrowFunction
(node: Element): node is HTMLScriptElement => node.tagName === 'SCRIPT'
1002753959/html2canvas
src/dom/node-parser.ts
TypeScript
ArrowFunction
(node: Element): node is HTMLTextAreaElement => node.tagName === 'TEXTAREA'
1002753959/html2canvas
src/dom/node-parser.ts
TypeScript
ArrowFunction
(node: Element): node is HTMLSelectElement => node.tagName === 'SELECT'
1002753959/html2canvas
src/dom/node-parser.ts
TypeScript
ClassDeclaration
@Component({ selector: 'rob-homepage-carousel', templateUrl: './homepage-carousel.component.html', styleUrls: ['./homepage-carousel.component.scss'] }) export class HomepageCarouselComponent {}
robbailey3/website
apps/site/src/app/homepage/homepage-carousel/homepage-carousel.component.ts
TypeScript
ClassDeclaration
export class CreateTagsCommand extends $Command< CreateTagsCommandInput, CreateTagsCommandOutput, MediaLiveClientResolvedConfig > { // Start section: command_properties // End section: command_properties constructor(readonly input: CreateTagsCommandInput) { // Start section: command_constructor su...
justingrant/aws-sdk-js-v3
clients/client-medialive/commands/CreateTagsCommand.ts
TypeScript
TypeAliasDeclaration
export type CreateTagsCommandInput = CreateTagsRequest;
justingrant/aws-sdk-js-v3
clients/client-medialive/commands/CreateTagsCommand.ts
TypeScript
TypeAliasDeclaration
export type CreateTagsCommandOutput = __MetadataBearer;
justingrant/aws-sdk-js-v3
clients/client-medialive/commands/CreateTagsCommand.ts
TypeScript
MethodDeclaration
resolveMiddleware( clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>, configuration: MediaLiveClientResolvedConfig, options?: __HttpHandlerOptions ): Handler<CreateTagsCommandInput, CreateTagsCommandOutput> { this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, thi...
justingrant/aws-sdk-js-v3
clients/client-medialive/commands/CreateTagsCommand.ts
TypeScript
MethodDeclaration
private serialize(input: CreateTagsCommandInput, context: __SerdeContext): Promise<__HttpRequest> { return serializeAws_restJson1CreateTagsCommand(input, context); }
justingrant/aws-sdk-js-v3
clients/client-medialive/commands/CreateTagsCommand.ts
TypeScript
MethodDeclaration
private deserialize(output: __HttpResponse, context: __SerdeContext): Promise<CreateTagsCommandOutput> { return deserializeAws_restJson1CreateTagsCommand(output, context); }
justingrant/aws-sdk-js-v3
clients/client-medialive/commands/CreateTagsCommand.ts
TypeScript
ArrowFunction
() => { let context: any = {}; beforeEach(() => { context = { x: 10, s: 'property', o: { a: 1, b: 2 } }; }); it('should return an object', () => { const result = evaluate('{}', context); expect(result).toBeInstanceOf(Object); }); it('should recognize identifier properties', () => { cons...
ianchi/ESpression
spec/eval/object.spec.ts
TypeScript
ArrowFunction
() => { context = { x: 10, s: 'property', o: { a: 1, b: 2 } }; }
ianchi/ESpression
spec/eval/object.spec.ts
TypeScript
ArrowFunction
() => { const result = evaluate('{}', context); expect(result).toBeInstanceOf(Object); }
ianchi/ESpression
spec/eval/object.spec.ts
TypeScript
ArrowFunction
() => { const result = evaluate('{a: 1, b:2}', context); expect(result).toEqual({ a: 1, b: 2 }); }
ianchi/ESpression
spec/eval/object.spec.ts
TypeScript
ArrowFunction
() => { const result = evaluate('{"- a": 1, "@b":2}', context); expect(result).toEqual({ '- a': 1, '@b': 2 }); }
ianchi/ESpression
spec/eval/object.spec.ts
TypeScript
ArrowFunction
() => { const result = evaluate('{1: 1, 2:2, 0xF:16}', context); expect(result).toEqual({ 1: 1, 2: 2, 0xf: 16 }); }
ianchi/ESpression
spec/eval/object.spec.ts
TypeScript
ArrowFunction
() => { const result = evaluate('{[s]:2}', context); expect(result).toEqual({ property: 2 }); }
ianchi/ESpression
spec/eval/object.spec.ts
TypeScript
ArrowFunction
() => { const result = evaluate('{a: 1, b:2,}', context); expect(result).toEqual({ a: 1, b: 2 }); }
ianchi/ESpression
spec/eval/object.spec.ts
TypeScript
ArrowFunction
() => { const result = evaluate('{...o}', context); expect(result).toEqual({ a: 1, b: 2 }); expect(result).not.toBe(context.o); }
ianchi/ESpression
spec/eval/object.spec.ts
TypeScript
ArrowFunction
() => { const result = evaluate('{...o, a:100}', context); expect(result).toEqual({ a: 100, b: 2 }); }
ianchi/ESpression
spec/eval/object.spec.ts
TypeScript
ArrowFunction
() => { const result = evaluate('{ a:100, ...o}', context); expect(result).toEqual({ a: 1, b: 2 }); }
ianchi/ESpression
spec/eval/object.spec.ts
TypeScript
ClassDeclaration
export class GovernanceStrategy extends BaseContract { connect(signerOrProvider: Signer | Provider | string): this; attach(addressOrName: string): this; deployed(): Promise<this>; listeners<EventArgsArray extends Array<any>, EventArgsObject>( eventFilter?: TypedEventFilter<EventArgsArray, EventArgsObject>...
WLKR-Financial/appwebsite
node_modules/@setprotocol/set-protocol-v2/typechain/GovernanceStrategy.d.ts
TypeScript
InterfaceDeclaration
interface GovernanceStrategyInterface extends ethers.utils.Interface { functions: { "AAVE()": FunctionFragment; "STK_AAVE()": FunctionFragment; "getPropositionPowerAt(address,uint256)": FunctionFragment; "getTotalPropositionSupplyAt(uint256)": FunctionFragment; "getTotalVotingSupplyAt(uint256)": ...
WLKR-Financial/appwebsite
node_modules/@setprotocol/set-protocol-v2/typechain/GovernanceStrategy.d.ts
TypeScript
MethodDeclaration
AAVE(overrides?: CallOverrides): Promise<string>;
WLKR-Financial/appwebsite
node_modules/@setprotocol/set-protocol-v2/typechain/GovernanceStrategy.d.ts
TypeScript
MethodDeclaration
STK_AAVE(overrides?: CallOverrides): Promise<string>;
WLKR-Financial/appwebsite
node_modules/@setprotocol/set-protocol-v2/typechain/GovernanceStrategy.d.ts
TypeScript
MethodDeclaration
getPropositionPowerAt( user: string, blockNumber: BigNumberish, overrides?: CallOverrides ): Promise<BigNumber>;
WLKR-Financial/appwebsite
node_modules/@setprotocol/set-protocol-v2/typechain/GovernanceStrategy.d.ts
TypeScript
MethodDeclaration
getTotalPropositionSupplyAt( blockNumber: BigNumberish, overrides?: CallOverrides ): Promise<BigNumber>;
WLKR-Financial/appwebsite
node_modules/@setprotocol/set-protocol-v2/typechain/GovernanceStrategy.d.ts
TypeScript
MethodDeclaration
getTotalVotingSupplyAt( blockNumber: BigNumberish, overrides?: CallOverrides ): Promise<BigNumber>;
WLKR-Financial/appwebsite
node_modules/@setprotocol/set-protocol-v2/typechain/GovernanceStrategy.d.ts
TypeScript
MethodDeclaration
getVotingPowerAt( user: string, blockNumber: BigNumberish, overrides?: CallOverrides ): Promise<BigNumber>;
WLKR-Financial/appwebsite
node_modules/@setprotocol/set-protocol-v2/typechain/GovernanceStrategy.d.ts
TypeScript
EnumDeclaration
/** * Copyright 2021 ZUP IT SERVICOS EM TECNOLOGIA E INOVACAO SA * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless require...
ZupIT/horusec-platform
manager/src/helpers/enums/authTypes.ts
TypeScript
FunctionDeclaration
export default function Notifications() { return <ReactNotification />; }
DashBouquet/pyroscope
webapp/javascript/ui/Notifications.tsx
TypeScript
TypeAliasDeclaration
export type NotificationOptions = { title?: string; message: string; type: 'success' | 'danger' | 'info'; dismiss?: DismissOptions; onRemoval?: ((id: string, removedBy: any) => void) | undefined; };
DashBouquet/pyroscope
webapp/javascript/ui/Notifications.tsx
TypeScript
MethodDeclaration
addNotification({ title, message, type, dismiss, onRemoval, }: NotificationOptions) { dismiss = dismiss || { duration: 5000, showIcon: true, }; libStore.addNotification({ ...defaultParams, title, message, type, dismiss, onRemoval, ...
DashBouquet/pyroscope
webapp/javascript/ui/Notifications.tsx
TypeScript
FunctionDeclaration
function initialize() { browser.storage.onChanged.addListener(changes => { const option = changes.option.newValue document.documentElement.classList.toggle('mob-enable-outline', option.outlineBlockUser) }) Options.load().then(option => { document.documentElement.classList.toggle('mob-enable-outline'...
swathi1102/MirrorBlock
src/scripts/mirrorblock/twitter.ts
TypeScript
ArrowFunction
changes => { const option = changes.option.newValue document.documentElement.classList.toggle('mob-enable-outline', option.outlineBlockUser) }
swathi1102/MirrorBlock
src/scripts/mirrorblock/twitter.ts
TypeScript
ArrowFunction
option => { document.documentElement.classList.toggle('mob-enable-outline', option.outlineBlockUser) }
swathi1102/MirrorBlock
src/scripts/mirrorblock/twitter.ts
TypeScript