type stringclasses 7
values | content stringlengths 4 9.55k | repo stringlengths 7 96 | path stringlengths 4 178 | language stringclasses 1
value |
|---|---|---|---|---|
ArrowFunction |
() => {
expect(component).toBeTruthy();
} | DMahanth/cQube_Workflow | development/ui/dashboard_ui/education_usecase/client-side/src/app/reports/student-performance/sem-view/sem-view.component.spec.ts | TypeScript |
ArrowFunction |
({ children, title = '' }) => {
return (
<>
<Seo title={title} />
<Container>
<HeaderStyled>
<Header />
</HeaderStyled>
<Main>{children}</Main>
</Container>
<Footer />
</> | AlbaRoza/Stooa | frontend/layouts/Home/index.tsx | TypeScript |
InterfaceDeclaration |
interface Props {
title?: string;
} | AlbaRoza/Stooa | frontend/layouts/Home/index.tsx | TypeScript |
ArrowFunction |
({
width = 24,
height = 24,
viewBox = '0 0 24 24',
fill = 'none',
...rest
}: SVG) => {
// eslint-disable-next-line @typescript-eslint/ban-ts-ignore
// @ts-ignore
return <Box as="svg" width={width} height={height} viewBox={viewBox} fill={fill} {...rest} />;
} | COVID-19-electronic-health-system/ux | packages/ui/src/svg/index.tsx | TypeScript |
InterfaceDeclaration |
interface SVGProps {
viewBox?: string;
fill?: string;
} | COVID-19-electronic-health-system/ux | packages/ui/src/svg/index.tsx | TypeScript |
TypeAliasDeclaration |
type SVG = SVGProps & BoxProps; | COVID-19-electronic-health-system/ux | packages/ui/src/svg/index.tsx | TypeScript |
ArrowFunction |
async (
region: string,
options?: RegionInfoProviderOptions
) =>
getRegionInfo(region, {
...options,
signingService: "chime",
regionHash,
partitionHash,
}) | AllanFly120/aws-sdk-js-v3 | clients/client-chime-sdk-messaging/src/endpoints.ts | TypeScript |
ArrowFunction |
() => {
performance.startTimer("controller_update")
const dt = this.eventContext.deltaTime;
controller.__update(dt);
performance.stopTimer("controller_update")
} | flecleach/pxt-move-mini | node_modules/pxt-common-packages/libs/game/scene.ts | TypeScript |
ArrowFunction |
() => {
if (this.tileMap) {
performance.startTimer("tilemap_update")
this.tileMap.update(this.camera);
performance.stopTimer("tilemap_update")
}
} | flecleach/pxt-move-mini | node_modules/pxt-common-packages/libs/game/scene.ts | TypeScript |
ArrowFunction |
() => {
performance.startTimer("physics")
const dt = this.eventContext.deltaTime;
this.physicsEngine.move(dt);
performance.stopTimer("physics")
} | flecleach/pxt-move-mini | node_modules/pxt-common-packages/libs/game/scene.ts | TypeScript |
ArrowFunction |
() => {
performance.startTimer("collisions")
const dt = this.eventContext.deltaTime;
this.physicsEngine.collisions();
this.camera.update();
for (const s of this.allSprites)
s.__update(this.camera, dt);
p... | flecleach/pxt-move-mini | node_modules/pxt-common-packages/libs/game/scene.ts | TypeScript |
ArrowFunction |
() => {
this.background.render();
} | flecleach/pxt-move-mini | node_modules/pxt-common-packages/libs/game/scene.ts | TypeScript |
ArrowFunction |
() => {
if (this.flags & Flag.NeedsSorting)
this.allSprites.sort(function (a, b) { return a.z - b.z || a.id - b.id; })
performance.startTimer("sprite_draw")
for (const s of this.allSprites)
s.__draw(this.camera);
perfor... | flecleach/pxt-move-mini | node_modules/pxt-common-packages/libs/game/scene.ts | TypeScript |
ArrowFunction |
() => {
if (game.debug)
this.physicsEngine.draw();
// clear flags
this.flags = 0;
} | flecleach/pxt-move-mini | node_modules/pxt-common-packages/libs/game/scene.ts | TypeScript |
ClassDeclaration |
export class Scene {
eventContext: control.EventContext;
background: Background;
tileMap: tiles.TileMap;
allSprites: SpriteLike[];
private spriteNextId: number;
spritesByKind: Sprite[][];
physicsEngine: PhysicsEngine;
camera: scene.Camera;
flags: ... | flecleach/pxt-move-mini | node_modules/pxt-common-packages/libs/game/scene.ts | TypeScript |
InterfaceDeclaration |
export interface SpriteHandler {
type: number;
handler: (sprite: Sprite) => void;
} | flecleach/pxt-move-mini | node_modules/pxt-common-packages/libs/game/scene.ts | TypeScript |
InterfaceDeclaration |
export interface OverlapHandler {
type: number;
otherType: number;
handler: (sprite: Sprite, otherSprite: Sprite) => void;
} | flecleach/pxt-move-mini | node_modules/pxt-common-packages/libs/game/scene.ts | TypeScript |
InterfaceDeclaration |
export interface CollisionHandler {
type: number;
tile: number;
handler: (sprite: Sprite) => void
} | flecleach/pxt-move-mini | node_modules/pxt-common-packages/libs/game/scene.ts | TypeScript |
EnumDeclaration |
export enum Flag {
NeedsSorting = 1 << 1,
} | flecleach/pxt-move-mini | node_modules/pxt-common-packages/libs/game/scene.ts | TypeScript |
MethodDeclaration |
init() {
if (this.allSprites) return;
this.allSprites = [];
this.spriteNextId = 0;
scene.setBackgroundColor(0)
// update controller state
this.eventContext.registerFrameHandler(8, () => {
performance.startTimer("controller_update"... | flecleach/pxt-move-mini | node_modules/pxt-common-packages/libs/game/scene.ts | TypeScript |
MethodDeclaration |
addSprite(sprite: SpriteLike) {
this.allSprites.push(sprite);
sprite.id = this.spriteNextId++;
} | flecleach/pxt-move-mini | node_modules/pxt-common-packages/libs/game/scene.ts | TypeScript |
ArrowFunction |
() => {
it('renders', async () => {
const page = await newE2EPage();
await page.setContent('<s-ds-color></s-ds-color>');
const element = await page.find('s-ds-color');
expect(element).toHaveClass('hydrated');
});
it('renders changes to the name data', async () => {
const page = await newE2E... | mmexvr/s-design-system | components/s-ds-color/src/components/s-ds-color/s-ds-color.e2e.ts | TypeScript |
ArrowFunction |
async () => {
const page = await newE2EPage();
await page.setContent('<s-ds-color></s-ds-color>');
const element = await page.find('s-ds-color');
expect(element).toHaveClass('hydrated');
} | mmexvr/s-design-system | components/s-ds-color/src/components/s-ds-color/s-ds-color.e2e.ts | TypeScript |
ArrowFunction |
async () => {
const page = await newE2EPage();
await page.setContent('<s-ds-color></s-ds-color>');
const component = await page.find('s-ds-color');
const element = await page.find('s-ds-color >>> div');
expect(element.textContent).toEqual(`Hello, World! I'm `);
component.setProperty('first', ... | mmexvr/s-design-system | components/s-ds-color/src/components/s-ds-color/s-ds-color.e2e.ts | TypeScript |
ArrowFunction |
(_browserWindow: BrowserWindow) => {
} | marshallbrain/image-gallery | src/electron/system.ts | TypeScript |
ArrowFunction |
(browserWindow: BrowserWindow) => {
loggingWindow = browserWindow
} | marshallbrain/image-gallery | src/electron/system.ts | TypeScript |
ArrowFunction |
(...data: any[]) => {
loggingWindow.webContents.send(logFeedChannel, ...data)
} | marshallbrain/image-gallery | src/electron/system.ts | TypeScript |
ClassDeclaration |
@NgModule({
imports: [RouterModule.forChild(routes)],
exports: [RouterModule]
})
export class NpFrameworkCssDemoRoutingModule { } | np-ui-lib/np-ui-lib | src/app/np-framework-css-demo/np-framework-css-demo-routing.module.ts | TypeScript |
ClassDeclaration | /** Configuration for the request such as headers, query parameters, and middleware options. */
export class DeviceCompliancePolicyStatesRequestBuilderPostRequestConfiguration {
/** Request headers */
public headers?: Record<string, string> | undefined;
/** Request options */
public options?: RequestOpt... | microsoftgraph/msgraph-sdk-typescript | src/deviceManagement/managedDevices/item/deviceCompliancePolicyStates/deviceCompliancePolicyStatesRequestBuilderPostRequestConfiguration.ts | TypeScript |
ArrowFunction |
() => {
return (
<Container sx={{ py: { xs: 4, md: 8 } }} | 94YOUNG/material-ui | docs/src/components/home/Sponsors.tsx | TypeScript |
FunctionDeclaration |
export declare function run(): Promise<number | undefined>; | KPGY/frontend16 | node_modules/@aws-amplify/cli/lib/index.d.ts | TypeScript |
FunctionDeclaration |
export declare function execute(input: Input): Promise<number>; | KPGY/frontend16 | node_modules/@aws-amplify/cli/lib/index.d.ts | TypeScript |
FunctionDeclaration |
export declare function executeAmplifyCommand(context: Context): Promise<void>; | KPGY/frontend16 | node_modules/@aws-amplify/cli/lib/index.d.ts | TypeScript |
FunctionDeclaration |
function testCommonmark(idx: number) {
test(`it passes the commonmark spec #${idx}`, () => {
const parser = unified()
.use(makeParser, { parserScribbles })
.use(remarkHTML);
const spec = commonmarkTests[idx];
const out = parser.processSync(`${spec.markdown}\n\n`);
// console.log(JSON.s... | e1senh0rn/metanotes | src/frontend/metamarkdown/parser/parser.test.ts | TypeScript |
ArrowFunction |
() => {
const parser = unified()
.use(makeParser, { parserScribbles })
.use(remarkHTML);
const spec = commonmarkTests[idx];
const out = parser.processSync(`${spec.markdown}\n\n`);
// console.log(JSON.stringify(parser.parse(spec.markdown + '\n\n'), null, 2));
expect(out.contents).toE... | e1senh0rn/metanotes | src/frontend/metamarkdown/parser/parser.test.ts | TypeScript |
ArrowFunction |
() => {
expectParse('hello world\n\n',
[
{
type: 'paragraph',
children: [
{ type: 'text', value: 'hello world' },
],
},
]);
} | e1senh0rn/metanotes | src/frontend/metamarkdown/parser/parser.test.ts | TypeScript |
ArrowFunction |
() => {
expectParse('hello **world**\n\n',
[
{
type: 'paragraph',
children: [
{ type: 'text', value: 'hello ' },
{ type: 'strong', children: [{ type: 'text', value: 'world' }] },
],
},
]);
} | e1senh0rn/metanotes | src/frontend/metamarkdown/parser/parser.test.ts | TypeScript |
ArrowFunction |
() => {
expectParse('hello **world\n\n',
[
{
type: 'paragraph',
children: [
{ type: 'text', value: 'hello **world' },
],
},
]);
} | e1senh0rn/metanotes | src/frontend/metamarkdown/parser/parser.test.ts | TypeScript |
ArrowFunction |
() => {
expectParse('hello ** world **\n\n',
[
{
type: 'paragraph',
children: [
{ type: 'text', value: 'hello ** world **' },
],
},
]);
} | e1senh0rn/metanotes | src/frontend/metamarkdown/parser/parser.test.ts | TypeScript |
ArrowFunction |
() => {
expectParse('### hello **there** ###\nworld\n\n',
[
{
type: 'heading',
depth: 3,
children: [
{ type: 'text', value: 'hello ' },
{ type: 'strong', children: [{ type: 'text', value: 'there' }] },
],
},
{
type: 'paragraph',
... | e1senh0rn/metanotes | src/frontend/metamarkdown/parser/parser.test.ts | TypeScript |
ArrowFunction |
() => ({
...(global as any).eventkit_test_props
}) | venicegeo/eventkit-cloud | eventkit_cloud/ui/static/ui/app/tests/DataPackPage/DataPackLinkButton.spec.tsx | TypeScript |
ArrowFunction |
() => {
props = { ...getProps() };
wrapper = shallow(<DataPackLinkButton {...props} />);
} | venicegeo/eventkit-cloud | eventkit_cloud/ui/static/ui/app/tests/DataPackPage/DataPackLinkButton.spec.tsx | TypeScript |
ArrowFunction |
() => {
it('should render a linked button', () => {
expect(wrapper.find(Link)).toHaveLength(1);
expect(wrapper.find(Link).props().to).toEqual(`/create`);
expect(wrapper.find(Button).html()).toContain('Create DataPack');
expect(wrapper.find(Button)).toHaveLength(1);
});
} | venicegeo/eventkit-cloud | eventkit_cloud/ui/static/ui/app/tests/DataPackPage/DataPackLinkButton.spec.tsx | TypeScript |
ArrowFunction |
() => {
expect(wrapper.find(Link)).toHaveLength(1);
expect(wrapper.find(Link).props().to).toEqual(`/create`);
expect(wrapper.find(Button).html()).toContain('Create DataPack');
expect(wrapper.find(Button)).toHaveLength(1);
} | venicegeo/eventkit-cloud | eventkit_cloud/ui/static/ui/app/tests/DataPackPage/DataPackLinkButton.spec.tsx | TypeScript |
ClassDeclaration |
declare class MdImportContacts extends React.Component<IconBaseProps> { } | 0916dhkim/DefinitelyTyped | types/react-icons/lib/md/import-contacts.d.ts | TypeScript |
InterfaceDeclaration | /** ------------------------------------------------------
* THIS FILE WAS AUTOMATICALLY GENERATED (DO NOT MODIFY)
* -------------------------------------------------------
*/
/* tslint:disable */
export interface Electricity {
id?: number;
totalLoad?: number;
timestamp?: Date;
solar?: ElectricityTyp... | aignerjo/entsoe-graphql | src/graphql.ts | TypeScript |
InterfaceDeclaration |
export interface ElectricityType {
amount?: number;
percentage?: number;
} | aignerjo/entsoe-graphql | src/graphql.ts | TypeScript |
InterfaceDeclaration |
export interface IQuery {
forecast(day?: Date, country?: string): Electricity[] | Promise<Electricity[]>;
} | aignerjo/entsoe-graphql | src/graphql.ts | TypeScript |
ArrowFunction |
() => {
jest.useFakeTimers();
jest.setSystemTime(new Date('2022-01-01T00:00:00'));
} | unicorn-84/rel-time-format | src/tests/getDiffInCalendarDays.test.ts | TypeScript |
ArrowFunction |
() => {
jest.useRealTimers();
} | unicorn-84/rel-time-format | src/tests/getDiffInCalendarDays.test.ts | TypeScript |
ArrowFunction |
() => {
it('should return the number of calendar days', () => {
expect(getDiffInCalendarDays(new Date(), new Date())).toBe(0);
expect(
getDiffInCalendarDays(new Date(), new Date('2021-12-31T23:59:59'))
).toBe(1);
expect(
getDiffInCalendarDays(new Date('2022-01-01T23:59:59'), new Date())... | unicorn-84/rel-time-format | src/tests/getDiffInCalendarDays.test.ts | TypeScript |
ArrowFunction |
() => {
expect(getDiffInCalendarDays(new Date(), new Date())).toBe(0);
expect(
getDiffInCalendarDays(new Date(), new Date('2021-12-31T23:59:59'))
).toBe(1);
expect(
getDiffInCalendarDays(new Date('2022-01-01T23:59:59'), new Date())
).toBe(0);
expect(
getDiffInCalendarDays(
... | unicorn-84/rel-time-format | src/tests/getDiffInCalendarDays.test.ts | TypeScript |
ArrowFunction |
({
versions = [],
version,
docsType,
topic,
formatMessage,
}) => {
const changeDocsVersion = (e: ChangeEvent<HTMLSelectElement>) => {
const newVersion = e.target.value;
const { hash } = window.location;
const path = getDocsPath(newVersion, {
id: topic,
type: docsType,
hash: ha... | alexandra-simeonova/website | src/views/docs/components/versionSwitcher/index.tsx | TypeScript |
ArrowFunction |
(e: ChangeEvent<HTMLSelectElement>) => {
const newVersion = e.target.value;
const { hash } = window.location;
const path = getDocsPath(newVersion, {
id: topic,
type: docsType,
hash: hash.substring(1),
});
navigate(path);
} | alexandra-simeonova/website | src/views/docs/components/versionSwitcher/index.tsx | TypeScript |
ArrowFunction |
(key: string, id: number) => (
<optgroup key={key} | alexandra-simeonova/website | src/views/docs/components/versionSwitcher/index.tsx | TypeScript |
ArrowFunction |
(element: string, index: number) => {
const isLatestVersion = id === 0 && index === 0;
return (
<option key={element} value={element}>
{element}{" "}
{isLatestVersion && `(${formatMessage({ id: "latest" })})`}
... | alexandra-simeonova/website | src/views/docs/components/versionSwitcher/index.tsx | TypeScript |
InterfaceDeclaration |
interface VersionSwitcherProps {
versions: DocsVersions;
version: string;
docsType: string;
topic: string;
} | alexandra-simeonova/website | src/views/docs/components/versionSwitcher/index.tsx | TypeScript |
MethodDeclaration |
formatMessage({ id: "version" }) | alexandra-simeonova/website | src/views/docs/components/versionSwitcher/index.tsx | TypeScript |
MethodDeclaration |
formatMessage({ id: key }) | alexandra-simeonova/website | src/views/docs/components/versionSwitcher/index.tsx | TypeScript |
ArrowFunction |
() => ExampleTuiCheckboxLabeledComponent | ikurilov/taiga-ui | projects/demo/src/modules/components/checkbox-labeled/checkbox-labeled.component.ts | TypeScript |
ArrowFunction |
value => {
if (value) {
this.control.get('testValue1')!.setValue(false);
}
} | ikurilov/taiga-ui | projects/demo/src/modules/components/checkbox-labeled/checkbox-labeled.component.ts | TypeScript |
ClassDeclaration |
@Component({
selector: 'example-tui-checkbox-labeled',
templateUrl: './checkbox-labeled.template.html',
changeDetection,
providers: [
{
provide: ABSTRACT_PROPS_ACCESSOR,
useExisting: forwardRef(() => ExampleTuiCheckboxLabeledComponent),
},
],
})
export class ... | ikurilov/taiga-ui | projects/demo/src/modules/components/checkbox-labeled/checkbox-labeled.component.ts | TypeScript |
ArrowFunction |
(
header: string,
what: string,
map: Record<string | number, unknown>,
key: string,
) => console.error(`${header} ${what}: ${JSON.stringify(map[key])}`) | ChalkPE/cactbot | util/gen_effect_id.ts | TypeScript |
ArrowFunction |
(table: Table<'#', 'Name'>) => {
const foundNames = new Set();
const map = new Map<string, string>();
for (const [id, effect] of Object.entries(table)) {
const rawName = effect['Name'];
if (!rawName)
continue;
const name = cleanName(rawName);
// Skip empty strings.
if (!name)... | ChalkPE/cactbot | util/gen_effect_id.ts | TypeScript |
ArrowFunction |
(id, name) => map.set(name, parseInt(id).toString(16).toUpperCase()) | ChalkPE/cactbot | util/gen_effect_id.ts | TypeScript |
ArrowFunction |
async (): Promise<void> => {
const table = await getIntlTable('Status', ['#', 'Name', 'Icon', 'PartyListPriority']);
const writer = new CoinachWriter(null, true);
void writer.writeTypeScript(
path.join('resources', effectsOutputFile),
'gen_effect_id.ts',
null,
null,
true,
makeE... | ChalkPE/cactbot | util/gen_effect_id.ts | TypeScript |
ClassDeclaration | /**
* This project is a continuation of Inrupt's awesome solid-auth-fetcher project,
* see https://www.npmjs.com/package/@inrupt/solid-auth-fetcher.
* Copyright 2020 The Solid Project.
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation ... | NoelDeMartin/solid-auth-fetcher | src/errors/ConfigurationError.ts | TypeScript |
ArrowFunction |
(theme, collector) => {
const background = theme.getColor(editorBackground);
if (background) {
collector.addRule(`.monaco-editor, .monaco-editor-background, .monaco-editor .inputarea.ime-input { background-color: ${background}; }`);
}
const foreground = theme.getColor(editorForeground);
if (foreground) {
col... | Ahmed-ShawkyEgy/vscode | src/vs/editor/common/core/editorColorRegistry.ts | TypeScript |
ClassDeclaration |
export declare abstract class AutocompleteBase extends Command {
readonly cliBin: string;
readonly cliBinEnvVar: string;
errorIfWindows(): void;
errorIfNotSupportedShell(shell: string): void;
readonly autocompleteCacheDir: string;
readonly acLogfilePath: string;
writeLogFile(msg: string): v... | RezanTuran/SpaceX-Travel | final/server/node_modules/@oclif/plugin-autocomplete/lib/base.d.ts | TypeScript |
MethodDeclaration |
errorIfWindows(): void; | RezanTuran/SpaceX-Travel | final/server/node_modules/@oclif/plugin-autocomplete/lib/base.d.ts | TypeScript |
MethodDeclaration |
errorIfNotSupportedShell(shell: string): void; | RezanTuran/SpaceX-Travel | final/server/node_modules/@oclif/plugin-autocomplete/lib/base.d.ts | TypeScript |
MethodDeclaration |
writeLogFile(msg: string): void; | RezanTuran/SpaceX-Travel | final/server/node_modules/@oclif/plugin-autocomplete/lib/base.d.ts | TypeScript |
ClassDeclaration |
@NgModule({
imports: [
CommonModule
],
declarations: []
})
export class ChatModule { } | YuriVaillant/exampleNg | example/src/app/shared/components/communication/chat/chat.module.ts | TypeScript |
ArrowFunction |
({ allInfos, setGroupedOptionHandler, itemSelectHandler }: Props) => {
return (
<Layer>
{allInfos.map((info) => (
<RectItem
position={info.position}
width={info.width}
height={info.height}
color={i... | fylip97/Thesis | src/CanvasObjects/Item/Item.tsx | TypeScript |
ArrowFunction |
(info) => (
<RectItem
position={info.position} | fylip97/Thesis | src/CanvasObjects/Item/Item.tsx | TypeScript |
ArrowFunction |
(info) => (
<TextItem
position={info.position} | fylip97/Thesis | src/CanvasObjects/Item/Item.tsx | TypeScript |
ArrowFunction |
(info) => (
<MetricImage
position={info.position} | fylip97/Thesis | src/CanvasObjects/Item/Item.tsx | TypeScript |
TypeAliasDeclaration |
type Props = {
allInfos: Element[],
setGroupedOptionHandler: (value: SelectableValue) => void;
itemSelectHandler: (item: Element) => void;
} | fylip97/Thesis | src/CanvasObjects/Item/Item.tsx | TypeScript |
FunctionDeclaration |
export function transformVoidExpression(state: TransformState, node: ts.VoidExpression) {
state.prereqList(transformExpressionStatementInner(state, skipDownwards(node.expression)));
return luau.create(luau.SyntaxKind.NilLiteral, {});
} | Fireboltofdeath/roblox-ts | src/TSTransformer/nodes/expressions/transformVoidExpression.ts | TypeScript |
FunctionDeclaration |
async function asyncForEach(array: any[], callback: Function) {
while (array.length > 0) {
await callback(array.pop());
}
} | dannywieser/js-demo | packages/demopage/src/utilities/markdown.ts | TypeScript |
ArrowFunction |
(componentName: string, srcFolder: string) => `${srcFolder}/${componentName}/README.md` | dannywieser/js-demo | packages/demopage/src/utilities/markdown.ts | TypeScript |
ArrowFunction |
(components: IComponentModule): IMarkdownOpts => {
const componentsReducer = (overrides: IComponentOverrides, component: string) => ({ ...overrides, [component]: components[component] });
const overrides = Object.keys(components).reduce(componentsReducer, {});
return { overrides };
} | dannywieser/js-demo | packages/demopage/src/utilities/markdown.ts | TypeScript |
ArrowFunction |
(overrides: IComponentOverrides, component: string) => ({ ...overrides, [component]: components[component] }) | dannywieser/js-demo | packages/demopage/src/utilities/markdown.ts | TypeScript |
ArrowFunction |
async (components: IComponentModule, srcFolder: string): Promise<string[]> => {
const documented: string[] = [];
await asyncForEach(Object.keys(components), async (component: string) => {
const { ok } = await fetch(mdPathForComponent(component, srcFolder));
if (ok) {
documented.push(component);
}... | dannywieser/js-demo | packages/demopage/src/utilities/markdown.ts | TypeScript |
ArrowFunction |
async (component: string) => {
const { ok } = await fetch(mdPathForComponent(component, srcFolder));
if (ok) {
documented.push(component);
}
} | dannywieser/js-demo | packages/demopage/src/utilities/markdown.ts | TypeScript |
ArrowFunction |
async (path: string, errorString = 'error') => {
let text = '';
try {
const result = await fetch(path);
text = await result.text();
} catch (e) {
text = errorString;
}
return text;
} | dannywieser/js-demo | packages/demopage/src/utilities/markdown.ts | TypeScript |
ArrowFunction |
async (path: string, error: string = undefined) => await(fetchText(path, error)) | dannywieser/js-demo | packages/demopage/src/utilities/markdown.ts | TypeScript |
InterfaceDeclaration |
export interface IComponentModule {
[moduleName: string]: Function;
} | dannywieser/js-demo | packages/demopage/src/utilities/markdown.ts | TypeScript |
InterfaceDeclaration |
export interface IComponentOverrides {
[component: string]: Function;
} | dannywieser/js-demo | packages/demopage/src/utilities/markdown.ts | TypeScript |
InterfaceDeclaration |
export interface IMarkdownOpts {
overrides: {
[component: string]: Function;
};
} | dannywieser/js-demo | packages/demopage/src/utilities/markdown.ts | TypeScript |
ArrowFunction |
props => {
const { user } = useContext(UserData);
const commentActions = (
<small>
[
<a href="#delete" onClick={props.handleDeleteClick}>
delete
</a>
] [
<a href="#edit" onClick={props.handleEditClick}>
edit
</a> | rmetzger/flink-ecosystem | src/client/components/comments/CommentHeader.tsx | TypeScript |
TypeAliasDeclaration |
type Props = {
login: string;
added: string;
user_id: number;
updated: string;
handleDeleteClick: (e: SyntheticEvent) => void;
handleEditClick: (e: SyntheticEvent) => void;
}; | rmetzger/flink-ecosystem | src/client/components/comments/CommentHeader.tsx | TypeScript |
ArrowFunction |
(response): void => {
this.rowData = response;
} | manoj755/Manoj-Singh-Bisht | src/app/emailparsing/emailparsing.component.ts | TypeScript |
ArrowFunction |
(response): void => {
this.db.addmessageandremove('deleted');
//this.LoadData();
} | manoj755/Manoj-Singh-Bisht | src/app/emailparsing/emailparsing.component.ts | TypeScript |
ArrowFunction |
(response): void => {
this.LoadData();
this.db.showMessage('Updated Successfully');
} | manoj755/Manoj-Singh-Bisht | src/app/emailparsing/emailparsing.component.ts | TypeScript |
ArrowFunction |
(response): void => {
alert('Thank you for updating Details, Velidating these details may take upto 72 Hours');
this.db.showMessage('Added Successfully');
// this.LoadData();
//this.smtp = { id: 0 };
} | manoj755/Manoj-Singh-Bisht | src/app/emailparsing/emailparsing.component.ts | TypeScript |
ClassDeclaration |
@Component({
selector: 'app-emailparsing',
templateUrl: './emailparsing.component.html',
styleUrls: ['./emailparsing.component.scss']
})
export class EmailparsingComponent implements OnInit {
private smsselected = {};
private emailselected = {};
private gridApi;
private gridColumnApi;
private autoGr... | manoj755/Manoj-Singh-Bisht | src/app/emailparsing/emailparsing.component.ts | TypeScript |
MethodDeclaration |
ngOnInit() {
this.LoadData();
} | manoj755/Manoj-Singh-Bisht | src/app/emailparsing/emailparsing.component.ts | TypeScript |
MethodDeclaration |
LoadData(): void {
this.db.list('smtpdetail/', {}, ((response): void => {
this.rowData = response;
}));
} | manoj755/Manoj-Singh-Bisht | src/app/emailparsing/emailparsing.component.ts | TypeScript |
MethodDeclaration |
onGridReady(params) {
this.gridApi = params.api;
this.gridColumnApi = params.columnApi;
} | manoj755/Manoj-Singh-Bisht | src/app/emailparsing/emailparsing.component.ts | TypeScript |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.