type stringclasses 7
values | content stringlengths 4 9.55k | repo stringlengths 7 96 | path stringlengths 4 178 | language stringclasses 1
value |
|---|---|---|---|---|
FunctionDeclaration |
function Decorator() {
const reduxErKlar = useVenterPaRedux();
const valgtEnhet = useAppState(state => state.session.valgtEnhetId);
const history = useHistory();
const dispatch = useDispatch();
const queryParams = useQueryParams<{ sokFnr?: string }>();
useHandleGosysUrl();
useOnMount(() =... | navikt/modiapersonoversikt | src/app/internarbeidsflatedecorator/Decorator.tsx | TypeScript |
ArrowFunction |
() => {
setKlar(true);
} | navikt/modiapersonoversikt | src/app/internarbeidsflatedecorator/Decorator.tsx | TypeScript |
ArrowFunction |
state => state.session.valgtEnhetId | navikt/modiapersonoversikt | src/app/internarbeidsflatedecorator/Decorator.tsx | TypeScript |
ArrowFunction |
() => {
if (queryParams.sokFnr) {
loggEvent('Oppslag', 'Puzzle');
}
} | navikt/modiapersonoversikt | src/app/internarbeidsflatedecorator/Decorator.tsx | TypeScript |
ArrowFunction |
(enhet: string) => {
dispatch(velgEnhetAction(enhet));
} | navikt/modiapersonoversikt | src/app/internarbeidsflatedecorator/Decorator.tsx | TypeScript |
MethodDeclaration |
onChange(fnr: string | null): void {
if (fnr === getFnrFraUrl().pathFnr) {
return;
}
if (fnr && fnr.length > 0) {
setNyBrukerIPath(history, fnr);
} else {
fjernBrukerFraPath(history);
... | navikt/modiapersonoversikt | src/app/internarbeidsflatedecorator/Decorator.tsx | TypeScript |
MethodDeclaration |
onChange(enhet: string | null): void {
if (enhet) {
settEnhet(enhet);
}
} | navikt/modiapersonoversikt | src/app/internarbeidsflatedecorator/Decorator.tsx | TypeScript |
ArrowFunction |
() => {
beforeEach(async(() => {
TestBed.configureTestingModule({
imports: [
RouterTestingModule
],
declarations: [
AppComponent
],
}).compileComponents();
}));
it('should create the app', () => {
const fixture = TestBed.createComponent(AppComponent);
cons... | hadzhiyski/dev-todo | client/src/app/app.component.spec.ts | TypeScript |
ArrowFunction |
() => {
TestBed.configureTestingModule({
imports: [
RouterTestingModule
],
declarations: [
AppComponent
],
}).compileComponents();
} | hadzhiyski/dev-todo | client/src/app/app.component.spec.ts | TypeScript |
ArrowFunction |
() => {
const fixture = TestBed.createComponent(AppComponent);
const app = fixture.componentInstance;
expect(app).toBeTruthy();
} | hadzhiyski/dev-todo | client/src/app/app.component.spec.ts | TypeScript |
ArrowFunction |
() => {
const fixture = TestBed.createComponent(AppComponent);
const app = fixture.componentInstance;
expect(app.title).toEqual('dev-todo');
} | hadzhiyski/dev-todo | client/src/app/app.component.spec.ts | TypeScript |
ArrowFunction |
() => {
const fixture = TestBed.createComponent(AppComponent);
fixture.detectChanges();
const compiled = fixture.nativeElement;
expect(compiled.querySelector('.content span').textContent).toContain('dev-todo app is running!');
} | hadzhiyski/dev-todo | client/src/app/app.component.spec.ts | TypeScript |
ArrowFunction |
() => ({
currentUserId: userId,
formMode: 'login', // login/regiser
formType: '',
modalConfirmData: {
targetType: null,
targetId: null,
name: null,
},
modalFormData: {
name: '',
slug: '',
url: '',
desc: '',
tags: [],
},
modalFormDataTx:... | Uvacoder/bm-vuer | packages/bm-vuer/src/stores/forms.ts | TypeScript |
ArrowFunction |
(state) => {
return state.formType
} | Uvacoder/bm-vuer | packages/bm-vuer/src/stores/forms.ts | TypeScript |
ArrowFunction |
(state) => {
return state.formMode
} | Uvacoder/bm-vuer | packages/bm-vuer/src/stores/forms.ts | TypeScript |
ArrowFunction |
(state) => {
return state.modalConfirmData
} | Uvacoder/bm-vuer | packages/bm-vuer/src/stores/forms.ts | TypeScript |
ArrowFunction |
(state) => {
return state.modalFormData
} | Uvacoder/bm-vuer | packages/bm-vuer/src/stores/forms.ts | TypeScript |
ArrowFunction |
(state) => {
return state.modalFormMeta
} | Uvacoder/bm-vuer | packages/bm-vuer/src/stores/forms.ts | TypeScript |
ArrowFunction |
(state) => {
return state.modalFormDataTx
} | Uvacoder/bm-vuer | packages/bm-vuer/src/stores/forms.ts | TypeScript |
ArrowFunction |
(state) => {
return state.modalFormMetaTx
} | Uvacoder/bm-vuer | packages/bm-vuer/src/stores/forms.ts | TypeScript |
MethodDeclaration |
CRUDHandler(data, isDeleting = false) {
if (isDeleting) {
const { dataObj } = data
const id = dataObj.targetId
// COLLECTION ITEMS / TAXONOMY ITEMS
return dataObj.targetType === 'item'
? deleteSingleItem(id)
: dataObj.targetType === 'cat'
? deleteCa... | Uvacoder/bm-vuer | packages/bm-vuer/src/stores/forms.ts | TypeScript |
MethodDeclaration |
openModalTx(targetTax, taxId, name, isEditing) {
this.formType = 'taxForm'
this.isModalOpen = true
this.modalFormMetaTx.isEditing = isEditing
this.modalFormMetaTx.targetTax = targetTax
this.modalFormMetaTx.taxId = taxId
this.modalFormDataTx.name = name
} | Uvacoder/bm-vuer | packages/bm-vuer/src/stores/forms.ts | TypeScript |
MethodDeclaration |
openModal(target, item_id, item, cat_id, isEditing) {
this.formType = 'itemForm'
this.isModalOpen = true
this.modalFormMeta.isEditing = isEditing
this.modalFormMeta.target = target
this.modalFormMeta.id = item_id
this.modalFormMeta.cat_id = cat_id
if (item) { // skip for addi... | Uvacoder/bm-vuer | packages/bm-vuer/src/stores/forms.ts | TypeScript |
MethodDeclaration |
openModalConfirm(targetType, targetId, name) {
this.isModalConfirmOpen = true
this.modalConfirmData.targetType = targetType
this.modalConfirmData.targetId = targetId
this.modalConfirmData.name = name
} | Uvacoder/bm-vuer | packages/bm-vuer/src/stores/forms.ts | TypeScript |
MethodDeclaration |
openModalAccount(targetAction) {
this.formType = (targetAction === 'login')
? 'loginForm'
: 'registerForm'
this.isModalAccountOpen = true
} | Uvacoder/bm-vuer | packages/bm-vuer/src/stores/forms.ts | TypeScript |
MethodDeclaration |
closeModalAccount() {
this.isModalAccountOpen = false
} | Uvacoder/bm-vuer | packages/bm-vuer/src/stores/forms.ts | TypeScript |
MethodDeclaration |
closeModalConfirm() {
this.isModalConfirmOpen = false
} | Uvacoder/bm-vuer | packages/bm-vuer/src/stores/forms.ts | TypeScript |
MethodDeclaration |
closeModal() {
this.isModalOpen = !this.isModalOpen
} | Uvacoder/bm-vuer | packages/bm-vuer/src/stores/forms.ts | TypeScript |
FunctionDeclaration | /**
* write a byte to special address
* @param addr eeprom address, eg: 1
* @param dat is the data will be write, eg: 5
*/
//% blockId="AT24_WriteByte" block="eeprom address %addr|write byte %dat"
//% weight=100 blockGap=8
export function write_byte(addr: number, dat: number): void {
let buf... | STEM-Power/EEPROM_AT24C | AT24CXX.ts | TypeScript |
FunctionDeclaration | /**
* read a byte from special address
* @param addr eeprom address, eg: 1
*/
//% blockId="AT24_ReadByte" block="read byte from address %addr"
//% weight=99 blockGap=8
export function read_byte(addr: number): number {
pins.i2cWriteNumber(AT24_I2C_ADDR, addr, NumberFormat.UInt16BE);
return... | STEM-Power/EEPROM_AT24C | AT24CXX.ts | TypeScript |
FunctionDeclaration | /**
* write a word to special address
* @param addr eeprom address, eg: 2
* @param dat is the data will be write, eg: 6
*/
//% blockId="AT24_WriteWord" block="eeprom address %addr|write word %dat"
//% weight=90 blockGap=8
export function write_word(addr: number, dat: number): void {
let buf ... | STEM-Power/EEPROM_AT24C | AT24CXX.ts | TypeScript |
FunctionDeclaration | /**
* read a word from special address
* @param addr eeprom address, eg: 2
*/
//% blockId="AT24_ReadWord" block="read word from address %addr"
//% weight=89 blockGap=8
export function read_word(addr: number): number {
pins.i2cWriteNumber(AT24_I2C_ADDR, addr, NumberFormat.UInt16BE);
return... | STEM-Power/EEPROM_AT24C | AT24CXX.ts | TypeScript |
FunctionDeclaration | /**
* write a dword to special address
* @param addr eeprom address, eg: 4
* @param dat is the data will be write, eg: 7
*/
//% blockId="AT24_WriteDWord" block="eeprom address %addr|write dword %dat"
//% weight=80 blockGap=8
export function write_dword(addr: number, dat: number): void {
let ... | STEM-Power/EEPROM_AT24C | AT24CXX.ts | TypeScript |
FunctionDeclaration | /**
* read a dword from special address
* @param addr eeprom address, eg: 4
*/
//% blockId="AT24_ReadDWord" block="read dword from address %addr"
//% weight=79 blockGap=8
export function read_dword(addr: number): number {
pins.i2cWriteNumber(AT24_I2C_ADDR, addr, NumberFormat.UInt16BE);
re... | STEM-Power/EEPROM_AT24C | AT24CXX.ts | TypeScript |
TypeAliasDeclaration |
type Network = {
rpcUrl: string;
explorerUrl: string;
explorerApiUrl: string;
} | BeanstalkFarms/louper | config/index.ts | TypeScript |
FunctionDeclaration | /**
* Render text based on stuff
* @param {String} text - Nunjucks template in text form
* @param {Object} [config] - Config options for rendering
* @param {Object} [config.context] - Context to render with
* @param {Object} [config.path] - Path to include in the error message
* @param {Object} [config.renderMode... | aeri/insomnia | packages/insomnia-app/app/templating/index.ts | TypeScript |
FunctionDeclaration | /**
* Reload Nunjucks environments. Useful for if plugins change.
*/
export function reload() {
nunjucksAll = null;
nunjucksVariablesOnly = null;
nunjucksTagsOnly = null;
} | aeri/insomnia | packages/insomnia-app/app/templating/index.ts | TypeScript |
FunctionDeclaration | /**
* Get definitions of template tags
*/
export async function getTagDefinitions() {
const env = await getNunjucks(RENDER_ALL);
// @ts-expect-error -- TSCONVERSION investigate why `extensions` isn't on Environment
return Object.keys(env.extensions)
// @ts-expect-error -- TSCONVERSION investigate why `exten... | aeri/insomnia | packages/insomnia-app/app/templating/index.ts | TypeScript |
FunctionDeclaration |
async function getNunjucks(renderMode: string) {
if (renderMode === RENDER_VARS && nunjucksVariablesOnly) {
return nunjucksVariablesOnly;
}
if (renderMode === RENDER_TAGS && nunjucksTagsOnly) {
return nunjucksTagsOnly;
}
if (renderMode === RENDER_ALL && nunjucksAll) {
return nunjucksAll;
}
... | aeri/insomnia | packages/insomnia-app/app/templating/index.ts | TypeScript |
ArrowFunction |
async (resolve, reject) => {
const nj = await getNunjucks(renderMode);
nj?.renderString(text, templatingContext, (err, result) => {
if (err) {
const sanitizedMsg = err.message
.replace(/\(unknown path\)\s/, '')
.replace(/\[Line \d+, Column \d*]/, '')
.replace(/^\s*Er... | aeri/insomnia | packages/insomnia-app/app/templating/index.ts | TypeScript |
ArrowFunction |
(err, result) => {
if (err) {
const sanitizedMsg = err.message
.replace(/\(unknown path\)\s/, '')
.replace(/\[Line \d+, Column \d*]/, '')
.replace(/^\s*Error:\s*/, '')
.trim();
const location = err.message.match(/\[Line (\d)+, Column (\d)*]/);
const... | aeri/insomnia | packages/insomnia-app/app/templating/index.ts | TypeScript |
ArrowFunction |
k => env.extensions[k] | aeri/insomnia | packages/insomnia-app/app/templating/index.ts | TypeScript |
ArrowFunction |
ext => !ext.isDeprecated() | aeri/insomnia | packages/insomnia-app/app/templating/index.ts | TypeScript |
ArrowFunction |
(a, b) => (a.getPriority() > b.getPriority() ? 1 : -1) | aeri/insomnia | packages/insomnia-app/app/templating/index.ts | TypeScript |
ArrowFunction |
ext => ({
name: ext.getTag(),
displayName: ext.getName(),
liveDisplayName: ext.getLiveDisplayName(),
description: ext.getDescription(),
disablePreview: ext.getDisablePreview(),
args: ext.getArgs(),
actions: ext.getActions(),
}) | aeri/insomnia | packages/insomnia-app/app/templating/index.ts | TypeScript |
ArrowFunction |
o => o | aeri/insomnia | packages/insomnia-app/app/templating/index.ts | TypeScript |
ClassDeclaration |
export class RenderError extends Error {
message: string;
path: string | null;
location: {
line: number;
column: number;
};
type: string;
reason: string;
} | aeri/insomnia | packages/insomnia-app/app/templating/index.ts | TypeScript |
FunctionDeclaration |
function keyExists (argv: Arguments, val: any): any {
// convert string '1' to number 1
const num = Number(val)
val = isNaN(num) ? val : num
if (typeof val === 'number') {
// check length of argv._
val = argv._.length >= val
} else if (val.match(/^--no-.+/)) {
// check if key/val... | jameswomack/yargs | lib/validation.ts | TypeScript |
ArrowFunction |
(key) => {
if (specialKeys.indexOf(key) === -1 &&
!Object.prototype.hasOwnProperty.call(positionalMap, key) &&
!Object.prototype.hasOwnProperty.call(yargs._getParseContext(), key) &&
!self.isValidAndSomeAliasIsNotNew(key, aliases)
) {
unknown.push(key)
}
} | jameswomack/yargs | lib/validation.ts | TypeScript |
ArrowFunction |
(key) => {
if (commandKeys.indexOf('' + key) === -1) {
unknown.push('' + key)
}
} | jameswomack/yargs | lib/validation.ts | TypeScript |
ArrowFunction |
(key) => {
if (specialKeys.indexOf(key) === -1 &&
Object.prototype.hasOwnProperty.call(options.choices, key)) {
[].concat(argv[key]).forEach((value) => {
// TODO case-insensitive configurability
if (options.choices[key].indexOf(value) === -1 &&
value !== undefine... | jameswomack/yargs | lib/validation.ts | TypeScript |
ArrowFunction |
(value) => {
// TODO case-insensitive configurability
if (options.choices[key].indexOf(value) === -1 &&
value !== undefined) {
invalid[key] = (invalid[key] || []).concat(value)
}
} | jameswomack/yargs | lib/validation.ts | TypeScript |
ArrowFunction |
(key) => {
msg += `\n ${__(
'Argument: %s, Given: %s, Choices: %s',
key,
usage.stringifiedValues(invalid[key]),
usage.stringifiedValues(options.choices[key])
)}`
} | jameswomack/yargs | lib/validation.ts | TypeScript |
ArrowFunction |
(k) => {
self.implies(k, key[k])
} | jameswomack/yargs | lib/validation.ts | TypeScript |
ArrowFunction |
(i) => self.implies(key, i) | jameswomack/yargs | lib/validation.ts | TypeScript |
ArrowFunction |
(key) => {
const origKey = key
;(implied[key] || []).forEach((value) => {
let key = origKey
const origValue = value
key = keyExists(argv, key)
value = keyExists(argv, value)
if (key && !value) {
implyFail.push(` ${origKey} -> ${origValue}`)
}
... | jameswomack/yargs | lib/validation.ts | TypeScript |
ArrowFunction |
(value) => {
let key = origKey
const origValue = value
key = keyExists(argv, key)
value = keyExists(argv, value)
if (key && !value) {
implyFail.push(` ${origKey} -> ${origValue}`)
}
} | jameswomack/yargs | lib/validation.ts | TypeScript |
ArrowFunction |
(value) => {
msg += (value)
} | jameswomack/yargs | lib/validation.ts | TypeScript |
ArrowFunction |
(k) => {
self.conflicts(k, key[k])
} | jameswomack/yargs | lib/validation.ts | TypeScript |
ArrowFunction |
(i) => self.conflicts(key, i) | jameswomack/yargs | lib/validation.ts | TypeScript |
ArrowFunction |
() => conflicting | jameswomack/yargs | lib/validation.ts | TypeScript |
ArrowFunction |
(key) => {
if (conflicting[key]) {
conflicting[key].forEach((value) => {
// we default keys to 'undefined' that have been configured, we should not
// apply conflicting check unless they are a value other than 'undefined'.
if (value && argv[key] !== undefined && argv[value] ... | jameswomack/yargs | lib/validation.ts | TypeScript |
ArrowFunction |
(value) => {
// we default keys to 'undefined' that have been configured, we should not
// apply conflicting check unless they are a value other than 'undefined'.
if (value && argv[key] !== undefined && argv[value] !== undefined) {
usage.fail(__('Arguments %s and %s are mutual... | jameswomack/yargs | lib/validation.ts | TypeScript |
ArrowFunction |
(a, b) => b.length - a.length | jameswomack/yargs | lib/validation.ts | TypeScript |
ArrowFunction |
k => !localLookup[k] | jameswomack/yargs | lib/validation.ts | TypeScript |
ArrowFunction |
c => c.global | jameswomack/yargs | lib/validation.ts | TypeScript |
InterfaceDeclaration | /** Instance of the validation module. */
export interface ValidationInstance {
check(f: CustomCheck['func'], global: boolean): void
conflicting(argv: Arguments): void
conflicts(key: string | Dictionary<string | string[]>, value?: string | string[]): void
customChecks(argv: Arguments, aliases: DetailedArguments... | jameswomack/yargs | lib/validation.ts | TypeScript |
InterfaceDeclaration |
interface CustomCheck {
func: (argv: Arguments, aliases: DetailedArguments['aliases']) => any
global: boolean
} | jameswomack/yargs | lib/validation.ts | TypeScript |
InterfaceDeclaration |
interface FrozenValidationInstance {
implied: Dictionary<KeyOrPos[]>
checks: CustomCheck[]
conflicting: Dictionary<(string | undefined)[]>
} | jameswomack/yargs | lib/validation.ts | TypeScript |
TypeAliasDeclaration |
export type KeyOrPos = string | number | jameswomack/yargs | lib/validation.ts | TypeScript |
ClassDeclaration |
export class Secrets {
name !: string;
desription !: string;
secret !: string;
active !: boolean;
} | Skatiner/InstantNotificationCenter | src/main/frontend/src/app/dto/Secrets.ts | TypeScript |
ArrowFunction |
(props: Props) => {
const desc = props.message.newDescription.stringValue()
return desc ? (
<Kb.Text type="BodySmall" style={styles.text} selectable={true}>
changed the channel description to{' '}
<Kb.Text type="BodySmallItalic">
{lquote}
{desc}
{rquote}
</Kb.Text>
... | 13rac1/keybase-client | shared/chat/conversation/messages/set-description/index.tsx | TypeScript |
ArrowFunction |
() =>
({
text: {flexGrow: 1},
} as const) | 13rac1/keybase-client | shared/chat/conversation/messages/set-description/index.tsx | TypeScript |
TypeAliasDeclaration |
type Props = {
message: Types.MessageSetDescription
} | 13rac1/keybase-client | shared/chat/conversation/messages/set-description/index.tsx | TypeScript |
ClassDeclaration |
export class Tenant {
readonly tenantId: string;
constructor(tenantId: Guid) {
this.tenantId = tenantId.toString();
}
} | dolittle/TheAviator | Source/microservices/configuration/Tenant.ts | TypeScript |
InterfaceDeclaration |
export interface JSForInStatement extends NodeBaseWithComments {
readonly type: "JSForInStatement";
readonly left: JSVariableDeclaration | AnyJSTargetAssignmentPattern;
readonly right: AnyJSExpression;
readonly body: AnyJSStatement;
} | Bradinz/tools | internal/ast/js/statements/JSForInStatement.ts | TypeScript |
FunctionDeclaration |
function i18nDirectiveFn(
i18n: I18nServiceType,
$sanitize: (html: string) => string
): IDirective<I18nScope> {
return {
restrict: 'A',
scope: {
id: '@i18nId',
defaultMessage: '@i18nDefaultMessage',
values: '<?i18nValues',
},
link($scope, $element) {
if ($scope.values) {
... | DarshitChanpura/OpenSearch-Dashboards | packages/osd-i18n/src/angular/directive.ts | TypeScript |
FunctionDeclaration |
function setContent(
$element: IRootElementService,
$scope: I18nScope,
$sanitize: (html: string) => string,
i18n: I18nServiceType
) {
const originalValues = $scope.values;
const valuesWithPlaceholders = {} as Record<string, any>;
let hasValuesWithPlaceholders = false;
// If we have values with the key... | DarshitChanpura/OpenSearch-Dashboards | packages/osd-i18n/src/angular/directive.ts | TypeScript |
ArrowFunction |
() => {
setContent($element, $scope, $sanitize, i18n);
} | DarshitChanpura/OpenSearch-Dashboards | packages/osd-i18n/src/angular/directive.ts | TypeScript |
InterfaceDeclaration |
interface I18nScope extends IScope {
values?: Record<string, any>;
defaultMessage: string;
id: string;
} | DarshitChanpura/OpenSearch-Dashboards | packages/osd-i18n/src/angular/directive.ts | TypeScript |
MethodDeclaration |
link($scope, $element) {
if ($scope.values) {
$scope.$watchCollection('values', () => {
setContent($element, $scope, $sanitize, i18n);
});
} else {
setContent($element, $scope, $sanitize, i18n);
}
} | DarshitChanpura/OpenSearch-Dashboards | packages/osd-i18n/src/angular/directive.ts | TypeScript |
FunctionDeclaration | //const [ strings, setstrings ] = useState( content.settings )
function handleOptionSelection( menuOption: MenuOption ) {
if ( typeof menuOption.onOptionPressed === 'function' ) {
menuOption.onOptionPressed()
} else if ( menuOption.screenName !== undefined ) {
navigation.navigate( menuOption.screenN... | thecryptobee/BitHyve-Wallet | src/pages/MoreOptions/MoreOptionsContainerScreen.tsx | TypeScript |
ArrowFunction |
( item: MenuOption ) => item.title | thecryptobee/BitHyve-Wallet | src/pages/MoreOptions/MoreOptionsContainerScreen.tsx | TypeScript |
ArrowFunction |
( { navigation }: Props ) => {
const { translations, } = useContext( LocalizationContext )
// currencyCode: idx( state, ( _ ) => _.preferences.currencyCode ),
const [ isEnabled, setIsEnabled ] = useState( false )
const toggleSwitch = () => setIsEnabled( previousState => !previousState )
const currencyCode = ... | thecryptobee/BitHyve-Wallet | src/pages/MoreOptions/MoreOptionsContainerScreen.tsx | TypeScript |
ArrowFunction |
() => setIsEnabled( previousState => !previousState ) | thecryptobee/BitHyve-Wallet | src/pages/MoreOptions/MoreOptionsContainerScreen.tsx | TypeScript |
ArrowFunction |
previousState => !previousState | thecryptobee/BitHyve-Wallet | src/pages/MoreOptions/MoreOptionsContainerScreen.tsx | TypeScript |
ArrowFunction |
( state ) => state.preferences.currencyCode | thecryptobee/BitHyve-Wallet | src/pages/MoreOptions/MoreOptionsContainerScreen.tsx | TypeScript |
ArrowFunction |
( name ) => {
switch ( name ){
case strings.accountManagement:
return ( <AccManagement /> )
case strings.node:
return ( <Node /> )
case strings.walletSettings:
return ( <Wallet /> )
case strings.AppInfo:
return ( <AppInfo /> )
default:... | thecryptobee/BitHyve-Wallet | src/pages/MoreOptions/MoreOptionsContainerScreen.tsx | TypeScript |
ArrowFunction |
() => handleOptionSelection( menuOption ) | thecryptobee/BitHyve-Wallet | src/pages/MoreOptions/MoreOptionsContainerScreen.tsx | TypeScript |
ArrowFunction |
( _data ) => { } | thecryptobee/BitHyve-Wallet | src/pages/MoreOptions/MoreOptionsContainerScreen.tsx | TypeScript |
ArrowFunction |
( _error ) => {
} | thecryptobee/BitHyve-Wallet | src/pages/MoreOptions/MoreOptionsContainerScreen.tsx | TypeScript |
ArrowFunction |
( _error ) => {
alert( 'Make sure Telegram installed on your device' )
} | thecryptobee/BitHyve-Wallet | src/pages/MoreOptions/MoreOptionsContainerScreen.tsx | TypeScript |
InterfaceDeclaration |
interface MenuOption {
title: string;
subtitle: string;
screenName?: string;
name ?: string,
onOptionPressed?: () => void;
// isSwitch: boolean;
imageSource: ImageSourcePropType;
} | thecryptobee/BitHyve-Wallet | src/pages/MoreOptions/MoreOptionsContainerScreen.tsx | TypeScript |
TypeAliasDeclaration |
export type Props = {
navigation: any;
containerStyle: {}
}; | thecryptobee/BitHyve-Wallet | src/pages/MoreOptions/MoreOptionsContainerScreen.tsx | TypeScript |
MethodDeclaration |
findImage( menuOption | thecryptobee/BitHyve-Wallet | src/pages/MoreOptions/MoreOptionsContainerScreen.tsx | TypeScript |
MethodDeclaration |
require( '../../assets/images/icons/icon_arrow.png' ) | thecryptobee/BitHyve-Wallet | src/pages/MoreOptions/MoreOptionsContainerScreen.tsx | TypeScript |
MethodDeclaration |
require( '../../assets/images/icons/link.png' ) | thecryptobee/BitHyve-Wallet | src/pages/MoreOptions/MoreOptionsContainerScreen.tsx | TypeScript |
FunctionDeclaration | // Instead of `any`, it would make sense here to get a schema-to-dts package and output the
// interfaces so you get type-safe options.
export default function (options: any): Rule {
// The chain rule allows us to chain multiple rules and apply them one after the other.
return chain([
(_tree: Tree, context: Sch... | TIBCOSoftware/TCSTK-component-schematics | src/comp-liveapps/index.ts | TypeScript |
ArrowFunction |
(_tree: Tree, context: SchematicContext) => {
// Show the options for this Schematics.
context.logger.info('-----------------------------------------------');
context.logger.info('--- ** TIBCO CLOUD COMPONENT GENERATOR ** ---');
context.logger.info('--- ** V1.07 **... | TIBCOSoftware/TCSTK-component-schematics | src/comp-liveapps/index.ts | TypeScript |
ArrowFunction | // The schematic Rule calls the schematic from the same collection, with the options
// passed in. Please note that if the schematic has a schema, the options will be
// validated and could throw, e.g. if a required option is missing.
//schematic('my-other-schematic', { option: true }),
(host: Tree, context: SchematicC... | TIBCOSoftware/TCSTK-component-schematics | src/comp-liveapps/index.ts | TypeScript |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.