type
stringclasses
7 values
content
stringlengths
4
9.55k
repo
stringlengths
7
96
path
stringlengths
4
178
language
stringclasses
1 value
ArrowFunction
(col, currIdx) => idx === currIdx ? { ...col, format } : col
Anzrz-Inc/formal-taxdai
src/react/components/common/tagInput/tableTagConfig.tsx
TypeScript
ArrowFunction
(row, currIdx) => idx === currIdx ? { ...row, format } : row
Anzrz-Inc/formal-taxdai
src/react/components/common/tagInput/tableTagConfig.tsx
TypeScript
ArrowFunction
(row, index) => { return ( <TextField componentRef={(index === columns.length - 1 && index !== 0) ? lastColumnInputRef : null}
Anzrz-Inc/formal-taxdai
src/react/components/common/tagInput/tableTagConfig.tsx
TypeScript
ArrowFunction
(row, index) => headersFormatAndType === TableElements.columns ? <Customizer {...defaultTheme}> <Dropdown style
Anzrz-Inc/formal-taxdai
src/react/components/common/tagInput/tableTagConfig.tsx
TypeScript
ArrowFunction
(row, index) => { return ( <TextField componentRef={(index === rows.length - 1 && index !== 0) ? lastRowInputRef : null}
Anzrz-Inc/formal-taxdai
src/react/components/common/tagInput/tableTagConfig.tsx
TypeScript
ArrowFunction
(row, index) => headersFormatAndType === TableElements.rows ? <Customizer {...defaultTheme}> <Dropdown className
Anzrz-Inc/formal-taxdai
src/react/components/common/tagInput/tableTagConfig.tsx
TypeScript
ArrowFunction
(column, currIndex) => (index === currIndex) ? { ...column, name } : column
Anzrz-Inc/formal-taxdai
src/react/components/common/tagInput/tableTagConfig.tsx
TypeScript
ArrowFunction
(row, currIndex) => (index === currIndex) ? { ...row, name } : row
Anzrz-Inc/formal-taxdai
src/react/components/common/tagInput/tableTagConfig.tsx
TypeScript
ArrowFunction
(e) => { onReOrder(-1, TableElements.rows) }
Anzrz-Inc/formal-taxdai
src/react/components/common/tagInput/tableTagConfig.tsx
TypeScript
ArrowFunction
(e) => { onReOrder(1, TableElements.rows) }
Anzrz-Inc/formal-taxdai
src/react/components/common/tagInput/tableTagConfig.tsx
TypeScript
ArrowFunction
() => { const selectedRowIndex = rowSelection.getSelectedIndices()[0]; if (props.tableTag && rows[selectedRowIndex].originalName) { const deletedRow = Object.assign({}, rows[selectedRowIndex]); deletedRow.name = deletedRow.original...
Anzrz-Inc/formal-taxdai
src/react/components/common/tagInput/tableTagConfig.tsx
TypeScript
ArrowFunction
(i, idx) => idx !== rowSelection.getSelectedIndices()[0]
Anzrz-Inc/formal-taxdai
src/react/components/common/tagInput/tableTagConfig.tsx
TypeScript
ArrowFunction
(e) => { onReOrder(-1, TableElements.columns) }
Anzrz-Inc/formal-taxdai
src/react/components/common/tagInput/tableTagConfig.tsx
TypeScript
ArrowFunction
(e) => { onReOrder(1, TableElements.columns) }
Anzrz-Inc/formal-taxdai
src/react/components/common/tagInput/tableTagConfig.tsx
TypeScript
ArrowFunction
() => { const selectedColumnIndex = columnSelection.getSelectedIndices()[0]; if (props.tableTag && columns[selectedColumnIndex].originalName) { const deletedColumn = Object.assign({}, columns[selectedColumnIndex]); deletedColumn.na...
Anzrz-Inc/formal-taxdai
src/react/components/common/tagInput/tableTagConfig.tsx
TypeScript
ArrowFunction
(i, idx) => idx !== selectedColumnIndex
Anzrz-Inc/formal-taxdai
src/react/components/common/tagInput/tableTagConfig.tsx
TypeScript
ArrowFunction
(item) => (item === index)
Anzrz-Inc/formal-taxdai
src/react/components/common/tagInput/tableTagConfig.tsx
TypeScript
ArrowFunction
(item, idx) => { if (item.name && item.name.length) { const name = item.name.trim(); namesMap[name] = namesMap[name] || []; namesMap[name].push(idx) } }
Anzrz-Inc/formal-taxdai
src/react/components/common/tagInput/tableTagConfig.tsx
TypeScript
ArrowFunction
() => { if (columns) { checkNameUniqueness(debouncedColumns, TableElements.columns) } // eslint-disable-next-line }
Anzrz-Inc/formal-taxdai
src/react/components/common/tagInput/tableTagConfig.tsx
TypeScript
ArrowFunction
() => { if (rows) { checkNameUniqueness(debouncedRows, TableElements.rows); } // eslint-disable-next-line }
Anzrz-Inc/formal-taxdai
src/react/components/common/tagInput/tableTagConfig.tsx
TypeScript
ArrowFunction
() => { if (tableTagName) { const existingTagName = currentProjectTags.find((item: ITag) => item.name === tableTagName.tableName.trim()); setNotUniqueNames({ ...notUniqueNames, tags: existingTagName !== undefined ? true : false }) } // eslint-disable-next-line }
Anzrz-Inc/formal-taxdai
src/react/components/common/tagInput/tableTagConfig.tsx
TypeScript
ArrowFunction
(item: ITag) => item.name === tableTagName.tableName.trim()
Anzrz-Inc/formal-taxdai
src/react/components/common/tagInput/tableTagConfig.tsx
TypeScript
ArrowFunction
i => ({ ...i, name: i.name.trim() })
Anzrz-Inc/formal-taxdai
src/react/components/common/tagInput/tableTagConfig.tsx
TypeScript
ArrowFunction
(field) => { return { fieldKey: field.name, fieldType: field.type, fieldFormat: field.format, itemType: null, fields: null, } }
Anzrz-Inc/formal-taxdai
src/react/components/common/tagInput/tableTagConfig.tsx
TypeScript
ArrowFunction
(field) => { return { fieldKey: field.name, fieldType: cleanTableName + "_object", fieldFormat: FieldFormat.NotSpecified, itemType: null, fields: null, } }
Anzrz-Inc/formal-taxdai
src/react/components/common/tagInput/tableTagConfig.tsx
TypeScript
ArrowFunction
(i) => !i.name.length
Anzrz-Inc/formal-taxdai
src/react/components/common/tagInput/tableTagConfig.tsx
TypeScript
ArrowFunction
(row) => { return { ...row, type: FieldType.String, format: FieldFormat.NotSpecified, } }
Anzrz-Inc/formal-taxdai
src/react/components/common/tagInput/tableTagConfig.tsx
TypeScript
ArrowFunction
(col) => ({ ...col, type: FieldType.String, format: FieldFormat.NotSpecified })
Anzrz-Inc/formal-taxdai
src/react/components/common/tagInput/tableTagConfig.tsx
TypeScript
ArrowFunction
() => new Selection({ onSelectionChanged: () => { setSelectedRow(rowSelection.getSelection()[0]) }, selectionMode: SelectionMode.single, })
Anzrz-Inc/formal-taxdai
src/react/components/common/tagInput/tableTagConfig.tsx
TypeScript
ArrowFunction
() => { setSelectedRow(rowSelection.getSelection()[0]) }
Anzrz-Inc/formal-taxdai
src/react/components/common/tagInput/tableTagConfig.tsx
TypeScript
ArrowFunction
() => new Selection({ onSelectionChanged: () => { setSelectedColumn(columnSelection.getSelection()[0]) }, selectionMode: SelectionMode.single, })
Anzrz-Inc/formal-taxdai
src/react/components/common/tagInput/tableTagConfig.tsx
TypeScript
ArrowFunction
() => { setSelectedColumn(columnSelection.getSelection()[0]) }
Anzrz-Inc/formal-taxdai
src/react/components/common/tagInput/tableTagConfig.tsx
TypeScript
ArrowFunction
() => { setTableChanged( (_.isEqual(columns, table.columns) && _.isEqual(rows, table.rows)) ? false : true) }
Anzrz-Inc/formal-taxdai
src/react/components/common/tagInput/tableTagConfig.tsx
TypeScript
ArrowFunction
() => { inputTableName.current.focus(); }
Anzrz-Inc/formal-taxdai
src/react/components/common/tagInput/tableTagConfig.tsx
TypeScript
ArrowFunction
() => { if (shouldAutoFocus === TableElements.column && lastColumnInputRef.current) { lastColumnInputRef.current.focus(); } else if (shouldAutoFocus === TableElements.row && lastRowInputRef.current) { lastRowInputRef.current.focus(); } setShouldAutoFocus(...
Anzrz-Inc/formal-taxdai
src/react/components/common/tagInput/tableTagConfig.tsx
TypeScript
InterfaceDeclaration
interface ITableTagConfigProps { setTagInputMode: (addTableMode: TagInputMode, selectedTableTagToLabel?: ITableTag, selectedTableTagBody?: ITableRegion[][][]) => void; addTableTag: (table: any) => void; splitPaneWidth: number; tableTag?: ITableTag; reconfigureTableConfirm?: (originalTagName: string...
Anzrz-Inc/formal-taxdai
src/react/components/common/tagInput/tableTagConfig.tsx
TypeScript
InterfaceDeclaration
interface ITableTagConfigState { rows?: ITableConfigItem[], columns: ITableConfigItem[], name: { tableName: string, originalTableName?: string; }, type: FieldType.Object | FieldType.Array, format: FieldFormat.NotSpecified, headerTypeAndFormat: TableElements.columns | TableEl...
Anzrz-Inc/formal-taxdai
src/react/components/common/tagInput/tableTagConfig.tsx
TypeScript
InterfaceDeclaration
interface ITableConfigItem { name: string, format: string, type: string; originalName?: string; originalFormat?: string, originalType?: string; documentCount?: number }
Anzrz-Inc/formal-taxdai
src/react/components/common/tagInput/tableTagConfig.tsx
TypeScript
TypeAliasDeclaration
type and format
Anzrz-Inc/formal-taxdai
src/react/components/common/tagInput/tableTagConfig.tsx
TypeScript
MethodDeclaration
getGreenWithWhiteBackgroundTheme()
Anzrz-Inc/formal-taxdai
src/react/components/common/tagInput/tableTagConfig.tsx
TypeScript
MethodDeclaration
getTextInputError(notUniqueNames
Anzrz-Inc/formal-taxdai
src/react/components/common/tagInput/tableTagConfig.tsx
TypeScript
MethodDeclaration
typeOptions()
Anzrz-Inc/formal-taxdai
src/react/components/common/tagInput/tableTagConfig.tsx
TypeScript
MethodDeclaration
formatOptions(row
Anzrz-Inc/formal-taxdai
src/react/components/common/tagInput/tableTagConfig.tsx
TypeScript
MethodDeclaration
getTableTagNameErrorMessage()
Anzrz-Inc/formal-taxdai
src/react/components/common/tagInput/tableTagConfig.tsx
TypeScript
MethodDeclaration
getRightPaneDefaultButtonTheme()
Anzrz-Inc/formal-taxdai
src/react/components/common/tagInput/tableTagConfig.tsx
TypeScript
MethodDeclaration
getPrimaryBlueTheme()
Anzrz-Inc/formal-taxdai
src/react/components/common/tagInput/tableTagConfig.tsx
TypeScript
MethodDeclaration
getDeletedFieldsTable(TableElements
Anzrz-Inc/formal-taxdai
src/react/components/common/tagInput/tableTagConfig.tsx
TypeScript
MethodDeclaration
getTableBody()
Anzrz-Inc/formal-taxdai
src/react/components/common/tagInput/tableTagConfig.tsx
TypeScript
MethodDeclaration
getPrimaryGreyTheme()
Anzrz-Inc/formal-taxdai
src/react/components/common/tagInput/tableTagConfig.tsx
TypeScript
MethodDeclaration
getPrimaryGreenTheme()
Anzrz-Inc/formal-taxdai
src/react/components/common/tagInput/tableTagConfig.tsx
TypeScript
FunctionDeclaration
// Type definitions for pad-left 2.1 // Project: https://github.com/jonschlinkert/pad-left // Definitions by: Richie Bendall <https://github.com/Richienb> // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped declare function padLeft(str: string, num?: number, ch?: string): string;
0-Captain/DefinitelyTyped
types/pad-left/index.d.ts
TypeScript
ArrowFunction
({ theme: { colors, boxShadow, breakpoints, font, mixins } }) => css` background-color: ${colors.bgPrimary}; box-shadow: ${boxShadow.md}; font-size: ${font.size.sm}; font-weight: ${font.weight.bold}; ${mixins.rounded} @media (min-width: ${breakpoints.md}) { font-size: ${font.size.xl}; ...
nikita-rudenko/nikitarudenko.dev
src/components/Card/Card.styled.ts
TypeScript
FunctionDeclaration
function ContentCardEstTokenOnTriggerModal({ token, liquidationPenaltyFormatted, }: ContentCardEstTokenOnTriggerModalProps) { const { t } = useTranslation() return ( <Grid gap={2}> <Heading variant="header3"> {t('manage-multiply-vault.card.max-token-on-stop-loss-trigger', { token })} <...
BunsDev/oasis-borrow
components/vault/detailsSection/ContentCardEstTokenOnTrigger.tsx
TypeScript
FunctionDeclaration
export function ContentCardEstTokenOnTrigger({ isCollateralActive, isStopLossEnabled, isEditing, token, slRatio, liquidationPrice, liquidationRatio, lockedCollateral, debt, currentOraclePrice, liquidationPenalty, afterSlRatio, }: ContentCardEstTokenOnTriggerProps) { const { t } = useTranslati...
BunsDev/oasis-borrow
components/vault/detailsSection/ContentCardEstTokenOnTrigger.tsx
TypeScript
ArrowFunction
(val: BigNumber): string => { return isCollateralActive ? `${formatAmount(val, token)} ${token}` : `${formatAmount(val.multipliedBy(currentOraclePrice), 'USD')} DAI` }
BunsDev/oasis-borrow
components/vault/detailsSection/ContentCardEstTokenOnTrigger.tsx
TypeScript
InterfaceDeclaration
interface ContentCardEstTokenOnTriggerModalProps { token: string liquidationPenaltyFormatted: string }
BunsDev/oasis-borrow
components/vault/detailsSection/ContentCardEstTokenOnTrigger.tsx
TypeScript
InterfaceDeclaration
interface ContentCardEstTokenOnTriggerProps { isCollateralActive: boolean isStopLossEnabled: boolean isEditing: boolean token: string slRatio: BigNumber liquidationPrice: BigNumber liquidationRatio: BigNumber lockedCollateral: BigNumber debt: BigNumber currentOraclePrice: BigNumber liquidationPen...
BunsDev/oasis-borrow
components/vault/detailsSection/ContentCardEstTokenOnTrigger.tsx
TypeScript
MethodDeclaration
t('manage-multiply-vault.card.max-token-on-stop-loss-trigger', { token })
BunsDev/oasis-borrow
components/vault/detailsSection/ContentCardEstTokenOnTrigger.tsx
TypeScript
MethodDeclaration
t('manage-multiply-vault.card.max-token-on-stop-loss-trigger-desc', { token, liquidationPenalty: liquidationPenaltyFormatted, })
BunsDev/oasis-borrow
components/vault/detailsSection/ContentCardEstTokenOnTrigger.tsx
TypeScript
ArrowFunction
(praedefinitum: lingua systematis)
DrewPalmerSNI/sobercoin
src/qt/locale/bitcoin_la.ts
TypeScript
ArrowFunction
(praedefinitum: 2333 vel testnet: 12333)
DrewPalmerSNI/sobercoin
src/qt/locale/bitcoin_la.ts
TypeScript
ArrowFunction
(praedefinitum: 2332 vel testnet: 12332)
DrewPalmerSNI/sobercoin
src/qt/locale/bitcoin_la.ts
TypeScript
ArrowFunction
(praedefinitum: 127.0.0.1)
DrewPalmerSNI/sobercoin
src/qt/locale/bitcoin_la.ts
TypeScript
ArrowFunction
(praedefinitum: 100)
DrewPalmerSNI/sobercoin
src/qt/locale/bitcoin_la.ts
TypeScript
InterfaceDeclaration
interface Response { song?: Song; hits?: Hit[]; }
andrewjshilliday/listen-together
server/api/types/Genius.d.ts
TypeScript
InterfaceDeclaration
interface GeniusResponse { response: Response; meta: Meta; }
andrewjshilliday/listen-together
server/api/types/Genius.d.ts
TypeScript
InterfaceDeclaration
interface Song { annotation_count: number; api_path: string; embed_content: string; fact_track: FactTrack; featured_video: boolean; full_title: string; header_image_thumbnail_url: string; header_image_url: string; id: number; lyrics: string; lyrics_owner_id: number; lyri...
andrewjshilliday/listen-together
server/api/types/Genius.d.ts
TypeScript
InterfaceDeclaration
interface Artist { alternate_names: string[]; api_path: string; facebook_name: string; followers_count: number; header_image_url: string; id: number; image_url: string; instagram_name: string; is_meme_verified: boolean; is_verified: boolean; name: string; twitter_name: s...
andrewjshilliday/listen-together
server/api/types/Genius.d.ts
TypeScript
InterfaceDeclaration
interface Album { api_path: string; cover_art_url: string; full_title: string; id: number; name: string; url: string; artist: Artist; }
andrewjshilliday/listen-together
server/api/types/Genius.d.ts
TypeScript
InterfaceDeclaration
interface SongRelationship { type: string; songs: Song[]; }
andrewjshilliday/listen-together
server/api/types/Genius.d.ts
TypeScript
InterfaceDeclaration
interface Hit { highlights: string[]; index: string type: string; result: Song; }
andrewjshilliday/listen-together
server/api/types/Genius.d.ts
TypeScript
InterfaceDeclaration
interface Annotation { api_path: string; comment_count: number; community: boolean; custom_preview: string; has_voters: boolean; id: number; pinned: boolean; share_url: string; source: string; state: string; url: string; verified: boolean; votes_total: number; co...
andrewjshilliday/listen-together
server/api/types/Genius.d.ts
TypeScript
InterfaceDeclaration
interface DescriptionAnnotation { type: string; annotator_id: number; annotator_Login: string; api_path: string; classification: string; fragment: string; id: number; is_description: boolean; path: string; song_id: number; url: string; verified_annotator_ids: number[]; ...
andrewjshilliday/listen-together
server/api/types/Genius.d.ts
TypeScript
InterfaceDeclaration
interface Annotatable { api_path: string; context: string; id: number; image_url: string; link_title: string; title: string; type: string; url: string; }
andrewjshilliday/listen-together
server/api/types/Genius.d.ts
TypeScript
InterfaceDeclaration
interface Range { content: string; }
andrewjshilliday/listen-together
server/api/types/Genius.d.ts
TypeScript
InterfaceDeclaration
interface FactTrack { provider: string; external_url: string; button_text: string; help_link_text: string; help_link_url: string; }
andrewjshilliday/listen-together
server/api/types/Genius.d.ts
TypeScript
InterfaceDeclaration
interface Stats { accepted_annotations: number; contributors: number; hot: boolean; iq_earners: number; transcribers: number; unreviewed_annotations: number; verified_annotations: number; concurrents: number; pageviews: number; }
andrewjshilliday/listen-together
server/api/types/Genius.d.ts
TypeScript
InterfaceDeclaration
interface Media { provider: string; provider_id: string; native_uri: string; start: number; type: string; url: string; }
andrewjshilliday/listen-together
server/api/types/Genius.d.ts
TypeScript
InterfaceDeclaration
interface Meta { status: number; }
andrewjshilliday/listen-together
server/api/types/Genius.d.ts
TypeScript
ClassDeclaration
@Module({ imports: [ SequelizeModule.forFeature([ Delegation, DelegationScope, ApiScope, IdentityResource, ]), RskModule.register(RskConfig), NationalRegistryModule.register(NationalRegistryConfig), ], controllers: [DelegationsController], providers: [ DelegationsSer...
island-is/island.is
apps/services/auth-api/src/app/modules/delegations/delegations.module.ts
TypeScript
ClassDeclaration
export default class IIIF extends TileImage { constructor(opt_options: Options); on(type: string | string[], listener: (p0: any) => void): EventsKey | EventsKey[]; once(type: string | string[], listener: (p0: any) => void): EventsKey | EventsKey[]; un(type: string | string[], listener: (p0: any) => voi...
256hz/DefinitelyTyped
types/ol/source/IIIF.d.ts
TypeScript
InterfaceDeclaration
export interface Options { attributions?: AttributionLike; attributionsCollapsible?: boolean; cacheSize?: number; crossOrigin?: string; extent?: Extent; format?: string; projection?: ProjectionLike; quality?: string; reprojectionErrorThreshold?: number; resolutions?: number[]; ...
256hz/DefinitelyTyped
types/ol/source/IIIF.d.ts
TypeScript
MethodDeclaration
on(type: string | string[], listener: (p0: any) => void): EventsKey | EventsKey[];
256hz/DefinitelyTyped
types/ol/source/IIIF.d.ts
TypeScript
MethodDeclaration
once(type: string | string[], listener: (p0: any) => void): EventsKey | EventsKey[];
256hz/DefinitelyTyped
types/ol/source/IIIF.d.ts
TypeScript
MethodDeclaration
un(type: string | string[], listener: (p0: any) => void): void;
256hz/DefinitelyTyped
types/ol/source/IIIF.d.ts
TypeScript
MethodDeclaration
on(type: 'change', listener: (evt: BaseEvent) => void): EventsKey;
256hz/DefinitelyTyped
types/ol/source/IIIF.d.ts
TypeScript
MethodDeclaration
once(type: 'change', listener: (evt: BaseEvent) => void): EventsKey;
256hz/DefinitelyTyped
types/ol/source/IIIF.d.ts
TypeScript
MethodDeclaration
un(type: 'change', listener: (evt: BaseEvent) => void): void;
256hz/DefinitelyTyped
types/ol/source/IIIF.d.ts
TypeScript
MethodDeclaration
on(type: 'error', listener: (evt: BaseEvent) => void): EventsKey;
256hz/DefinitelyTyped
types/ol/source/IIIF.d.ts
TypeScript
MethodDeclaration
once(type: 'error', listener: (evt: BaseEvent) => void): EventsKey;
256hz/DefinitelyTyped
types/ol/source/IIIF.d.ts
TypeScript
MethodDeclaration
un(type: 'error', listener: (evt: BaseEvent) => void): void;
256hz/DefinitelyTyped
types/ol/source/IIIF.d.ts
TypeScript
MethodDeclaration
on(type: 'propertychange', listener: (evt: ObjectEvent) => void): EventsKey;
256hz/DefinitelyTyped
types/ol/source/IIIF.d.ts
TypeScript
MethodDeclaration
once(type: 'propertychange', listener: (evt: ObjectEvent) => void): EventsKey;
256hz/DefinitelyTyped
types/ol/source/IIIF.d.ts
TypeScript
MethodDeclaration
un(type: 'propertychange', listener: (evt: ObjectEvent) => void): void;
256hz/DefinitelyTyped
types/ol/source/IIIF.d.ts
TypeScript
MethodDeclaration
on(type: 'tileloadend', listener: (evt: TileSourceEvent) => void): EventsKey;
256hz/DefinitelyTyped
types/ol/source/IIIF.d.ts
TypeScript
MethodDeclaration
once(type: 'tileloadend', listener: (evt: TileSourceEvent) => void): EventsKey;
256hz/DefinitelyTyped
types/ol/source/IIIF.d.ts
TypeScript
MethodDeclaration
un(type: 'tileloadend', listener: (evt: TileSourceEvent) => void): void;
256hz/DefinitelyTyped
types/ol/source/IIIF.d.ts
TypeScript
MethodDeclaration
on(type: 'tileloaderror', listener: (evt: TileSourceEvent) => void): EventsKey;
256hz/DefinitelyTyped
types/ol/source/IIIF.d.ts
TypeScript
MethodDeclaration
once(type: 'tileloaderror', listener: (evt: TileSourceEvent) => void): EventsKey;
256hz/DefinitelyTyped
types/ol/source/IIIF.d.ts
TypeScript
MethodDeclaration
un(type: 'tileloaderror', listener: (evt: TileSourceEvent) => void): void;
256hz/DefinitelyTyped
types/ol/source/IIIF.d.ts
TypeScript