type stringclasses 7
values | content stringlengths 4 9.55k | repo stringlengths 7 96 | path stringlengths 4 178 | language stringclasses 1
value |
|---|---|---|---|---|
MethodDeclaration |
public async getBuildMessages(timestamp: number): Promise<string[]> {
const client: any = await this.createAndInitClient();
const userId: string = await this.getUserId();
return new Promise<string[]>((resolve, reject) => {
client.methodCall("IDEPluginNotificator.getBuildMessages", [... | JetBrains/teamcity-vscode-extension | src/dal/remotebuildserver.ts | TypeScript |
MethodDeclaration | /**
* @param suitableConfigurations - array of build configurations. Extension requests all related projects to collect full information
* about build configurations (including projectNames and buildConfigurationName). The information is required to create label for BuildConfig.
* @return - array of buil... | JetBrains/teamcity-vscode-extension | src/dal/remotebuildserver.ts | TypeScript |
ClassDeclaration |
export default class ChartProps<FormDataType extends CamelCaseFormData | SnakeCaseFormData = CamelCaseFormData> {
static createSelector: () => ChartPropsSelector;
annotationData: AnnotationData;
datasource: CamelCaseDatasource;
rawDatasource: SnakeCaseDatasource;
initialValues: InitialValues;
f... | kumarss20/superset-neo4j | superset/assets/node_modules/@superset-ui/chart/lib/models/ChartProps.d.ts | TypeScript |
InterfaceDeclaration | /**
* Preferred format for ChartProps config
*/
export interface ChartPropsConfig {
annotationData?: AnnotationData;
/** Datasource metadata */
datasource?: SnakeCaseDatasource;
/**
* Formerly called "filters", which was misleading because it is actually
* initial values of the filter_box an... | kumarss20/superset-neo4j | superset/assets/node_modules/@superset-ui/chart/lib/models/ChartProps.d.ts | TypeScript |
TypeAliasDeclaration |
declare type AnnotationData = PlainObject; | kumarss20/superset-neo4j | superset/assets/node_modules/@superset-ui/chart/lib/models/ChartProps.d.ts | TypeScript |
TypeAliasDeclaration |
declare type CamelCaseDatasource = PlainObject; | kumarss20/superset-neo4j | superset/assets/node_modules/@superset-ui/chart/lib/models/ChartProps.d.ts | TypeScript |
TypeAliasDeclaration |
declare type SnakeCaseDatasource = PlainObject; | kumarss20/superset-neo4j | superset/assets/node_modules/@superset-ui/chart/lib/models/ChartProps.d.ts | TypeScript |
TypeAliasDeclaration |
declare type CamelCaseFormData = PlainObject; | kumarss20/superset-neo4j | superset/assets/node_modules/@superset-ui/chart/lib/models/ChartProps.d.ts | TypeScript |
TypeAliasDeclaration |
declare type SnakeCaseFormData = PlainObject; | kumarss20/superset-neo4j | superset/assets/node_modules/@superset-ui/chart/lib/models/ChartProps.d.ts | TypeScript |
TypeAliasDeclaration |
export declare type QueryData = PlainObject; | kumarss20/superset-neo4j | superset/assets/node_modules/@superset-ui/chart/lib/models/ChartProps.d.ts | TypeScript |
TypeAliasDeclaration | /** Initial values for the visualizations, currently used by only filter_box and table */
declare type InitialValues = PlainObject; | kumarss20/superset-neo4j | superset/assets/node_modules/@superset-ui/chart/lib/models/ChartProps.d.ts | TypeScript |
TypeAliasDeclaration |
declare type ChartPropsSelector = (c: ChartPropsConfig) => ChartProps; | kumarss20/superset-neo4j | superset/assets/node_modules/@superset-ui/chart/lib/models/ChartProps.d.ts | TypeScript |
TypeAliasDeclaration | /** Optional field for event handlers, renderers */
declare type Hooks = {
/** handle adding filters */
onAddFilter?: HandlerFunction;
/** handle errors */
onError?: HandlerFunction;
/** use the vis as control to update state */
setControlValue?: HandlerFunction;
/** handle tooltip */
... | kumarss20/superset-neo4j | superset/assets/node_modules/@superset-ui/chart/lib/models/ChartProps.d.ts | TypeScript |
TypeAliasDeclaration | /* eslint-disable camelcase */
export type SubredditType = {
id: number;
name: string;
commentNum: string;
}; | ashwin003/Reddit-Wherever | src/components/types.ts | TypeScript |
TypeAliasDeclaration |
export type DataType = {
data: {
score: number;
title: string;
permalink: string;
created_utc: number;
author: string;
subreddit: string;
num_comments: number;
id: string;
parent_id: string;
children: string[];
count: number;
body_html: string;
likes: boolean;
... | ashwin003/Reddit-Wherever | src/components/types.ts | TypeScript |
FunctionDeclaration |
export default function HeaderContainer({
mode,
scenes,
layout,
insets,
state,
getPreviousRoute,
onContentHeightChange,
gestureDirection,
styleInterpolator,
style,
}: Props) {
const focusedRoute = state.routes[state.index];
return (
<View pointerEvents="box-none" style={style}>
{scen... | jamesallain/starter | packages/stack/src/views/Header/HeaderContainer.tsx | TypeScript |
ArrowFunction |
(scene, i, self) => {
if ((mode === 'screen' && i !== self.length - 1) || !scene) {
return null;
}
const { options } = scene.descriptor;
const isFocused = focusedRoute.key === scene.route.key;
const previousRoute = getPreviousRoute({ route: scene.route });
le... | jamesallain/starter | packages/stack/src/views/Header/HeaderContainer.tsx | TypeScript |
ArrowFunction |
e =>
onContentHeightChange({
route: scene.route,
height: e.nativeEvent.layout.height,
}) | jamesallain/starter | packages/stack/src/views/Header/HeaderContainer.tsx | TypeScript |
TypeAliasDeclaration |
export type Props = {
mode: 'float' | 'screen';
layout: Layout;
insets: EdgeInsets;
scenes: (Scene<Route<string>> | undefined)[];
state: StackNavigationState;
getPreviousRoute: (props: {
route: Route<string>;
}) => Route<string> | undefined;
onContentHeightChange?: (props: {
route: Route<string... | jamesallain/starter | packages/stack/src/views/Header/HeaderContainer.tsx | TypeScript |
ClassDeclaration |
export class Auth extends BaseEntity<string, IAuth> implements IAuth {
get userId(): string {
return this.data.userId;
}
set userId(val: string) {
if (!isUUID(val))
throw new SystemError(MessageError.PARAM_INVALID, { t: 'user' });
this.data.userId = val;
... | felixle236/node-core | src/core/domain/entities/auth/Auth.ts | TypeScript |
MethodDeclaration | /* Handlers */
private _hashPassword(password: string): string {
return hashMD5(password, '$$');
} | felixle236/node-core | src/core/domain/entities/auth/Auth.ts | TypeScript |
MethodDeclaration |
comparePassword(password: string): boolean {
return this.password === this._hashPassword(password);
} | felixle236/node-core | src/core/domain/entities/auth/Auth.ts | TypeScript |
InterfaceDeclaration |
export interface GlobalComponents {
Counter: typeof import('./src/components/Counter.vue')['default']
Footer: typeof import('./src/components/Footer.vue')['default']
MineBlock: typeof import('./src/components/MineBlock.vue')['default']
} | TwoKe945/vue-minesweeper | components.d.ts | TypeScript |
ClassDeclaration |
@Module({
imports: [TypeOrmModule.forFeature([Effect])],
providers: [EffectService],
controllers: [EffectController],
})
export class EffectModule {} | Nicklason/tf2-schema-service | src/effect/effect.module.ts | TypeScript |
FunctionDeclaration |
function Searchbar({ onSearch }: ISearchbarProps) {
return (
<Input
size="large"
className="searchbar"
placeholder="Search a product..."
onChange={(e) => onSearch(e.target.value)} | WalkingPizza/velasca_challenge | src/SearchBar/SearchBar.tsx | TypeScript |
ArrowFunction |
() => {
let page: AppPage;
beforeEach(() => {
page = new AppPage();
});
it('should display welcome message', () => {
page.navigateTo();
expect(page.getTitleText()).toEqual('Welcome to emojifier!');
});
} | Brihadeeshrk/mlh-emojifier-final | e2e/src/app.e2e-spec.ts | TypeScript |
ArrowFunction |
() => {
page.navigateTo();
expect(page.getTitleText()).toEqual('Welcome to emojifier!');
} | Brihadeeshrk/mlh-emojifier-final | e2e/src/app.e2e-spec.ts | TypeScript |
ArrowFunction |
() => {
let testContext: Context;
beforeEach(() => {
testContext = {} as Context;
});
describe('with keypair version RSA-2048 (A)', () => {
beforeEach(() => {
testContext.plainUserKeyPairContainer = {
privateKeyContainer: plainPrivateKey2048 as PrivateKeyCo... | dracoon/dracoon-javascript-crypto-sdk | test/spec/encryptPrivateKey.spec.ts | TypeScript |
ArrowFunction |
() => {
testContext = {} as Context;
} | dracoon/dracoon-javascript-crypto-sdk | test/spec/encryptPrivateKey.spec.ts | TypeScript |
ArrowFunction |
() => {
beforeEach(() => {
testContext.plainUserKeyPairContainer = {
privateKeyContainer: plainPrivateKey2048 as PrivateKeyContainer,
publicKeyContainer: publicKey2048 as PublicKeyContainer
};
testContext.password = 'Qwer1234!';
});
... | dracoon/dracoon-javascript-crypto-sdk | test/spec/encryptPrivateKey.spec.ts | TypeScript |
ArrowFunction |
() => {
testContext.plainUserKeyPairContainer = {
privateKeyContainer: plainPrivateKey2048 as PrivateKeyContainer,
publicKeyContainer: publicKey2048 as PublicKeyContainer
};
testContext.password = 'Qwer1234!';
} | dracoon/dracoon-javascript-crypto-sdk | test/spec/encryptPrivateKey.spec.ts | TypeScript |
ArrowFunction |
() => {
const userKeyPairContainer: UserKeyPairContainer = Crypto.encryptPrivateKey(
testContext.plainUserKeyPairContainer,
testContext.password
);
expect(Object.keys(userKeyPairContainer)).toContain('privateKeyContainer');
expect(Object.... | dracoon/dracoon-javascript-crypto-sdk | test/spec/encryptPrivateKey.spec.ts | TypeScript |
ArrowFunction |
() => {
const userKeyPairContainer: UserKeyPairContainer = Crypto.encryptPrivateKey(
testContext.plainUserKeyPairContainer,
testContext.password
);
expect(userKeyPairContainer.privateKeyContainer.version).toBe(UserKeyPairVersion.RSA2048);
... | dracoon/dracoon-javascript-crypto-sdk | test/spec/encryptPrivateKey.spec.ts | TypeScript |
ArrowFunction |
() => {
const userKeyPairContainer: UserKeyPairContainer = Crypto.encryptPrivateKey(
testContext.plainUserKeyPairContainer,
testContext.password
);
expect(userKeyPairContainer.privateKeyContainer.privateKey).toContain('-----BEGIN ENCRYPTED PRIVATE KE... | dracoon/dracoon-javascript-crypto-sdk | test/spec/encryptPrivateKey.spec.ts | TypeScript |
ArrowFunction |
() => {
const userKeyPairContainer: UserKeyPairContainer = Crypto.encryptPrivateKey(
testContext.plainUserKeyPairContainer,
testContext.password
);
expect(userKeyPairContainer.publicKeyContainer.publicKey).toBe(
testContext.plainUserK... | dracoon/dracoon-javascript-crypto-sdk | test/spec/encryptPrivateKey.spec.ts | TypeScript |
ArrowFunction |
() => {
beforeEach(() => {
testContext.plainUserKeyPairContainer = {
privateKeyContainer: plainPrivateKey4096 as PrivateKeyContainer,
publicKeyContainer: publicKey4096 as PublicKeyContainer
};
testContext.password = 'Qwer1234!';
});
... | dracoon/dracoon-javascript-crypto-sdk | test/spec/encryptPrivateKey.spec.ts | TypeScript |
ArrowFunction |
() => {
testContext.plainUserKeyPairContainer = {
privateKeyContainer: plainPrivateKey4096 as PrivateKeyContainer,
publicKeyContainer: publicKey4096 as PublicKeyContainer
};
testContext.password = 'Qwer1234!';
} | dracoon/dracoon-javascript-crypto-sdk | test/spec/encryptPrivateKey.spec.ts | TypeScript |
ArrowFunction |
() => {
const userKeyPairContainer: UserKeyPairContainer = Crypto.encryptPrivateKey(
testContext.plainUserKeyPairContainer,
testContext.password
);
expect(userKeyPairContainer.privateKeyContainer.version).toBe(UserKeyPairVersion.RSA4096);
... | dracoon/dracoon-javascript-crypto-sdk | test/spec/encryptPrivateKey.spec.ts | TypeScript |
TypeAliasDeclaration |
type Context = {
plainUserKeyPairContainer: PlainUserKeyPairContainer;
password: string;
}; | dracoon/dracoon-javascript-crypto-sdk | test/spec/encryptPrivateKey.spec.ts | TypeScript |
ArrowFunction |
() => ({
createContextFactory: jest.fn().mockImplementation(() => ({}))
}) | wickykane/lyd-wp-plugins | plugins/lyd-plugin/test/jest/store/stores.test.tsx | TypeScript |
ArrowFunction |
() => ({
TodoStore: jest.fn()
}) | wickykane/lyd-wp-plugins | plugins/lyd-plugin/test/jest/store/stores.test.tsx | TypeScript |
ArrowFunction |
() => ({
OptionStore: jest.fn()
}) | wickykane/lyd-wp-plugins | plugins/lyd-plugin/test/jest/store/stores.test.tsx | TypeScript |
ArrowFunction |
() => ({
configure: jest.fn()
}) | wickykane/lyd-wp-plugins | plugins/lyd-plugin/test/jest/store/stores.test.tsx | TypeScript |
ArrowFunction |
() => {
beforeEach(() => {
// @ts-ignore Currently the easiest way to reset private singleton variable
RootStore.me = undefined;
});
describe("configure", () => {
it("should call configure to always force actions", () => {
expect(mobx.configure).toHaveBeenCalledWith(exp... | wickykane/lyd-wp-plugins | plugins/lyd-plugin/test/jest/store/stores.test.tsx | TypeScript |
ArrowFunction |
() => {
// @ts-ignore Currently the easiest way to reset private singleton variable
RootStore.me = undefined;
} | wickykane/lyd-wp-plugins | plugins/lyd-plugin/test/jest/store/stores.test.tsx | TypeScript |
ArrowFunction |
() => {
it("should call configure to always force actions", () => {
expect(mobx.configure).toHaveBeenCalledWith(expect.objectContaining({ enforceActions: "always" }));
});
} | wickykane/lyd-wp-plugins | plugins/lyd-plugin/test/jest/store/stores.test.tsx | TypeScript |
ArrowFunction |
() => {
expect(mobx.configure).toHaveBeenCalledWith(expect.objectContaining({ enforceActions: "always" }));
} | wickykane/lyd-wp-plugins | plugins/lyd-plugin/test/jest/store/stores.test.tsx | TypeScript |
ArrowFunction |
() => {
describe("context", () => {
it("should cache context factory result", () => {
RootStore.get.context;
RootStore.get.context;
expect(createContextFactory).toHaveBeenCalledTimes(1);
});
});
describe("constructor", ()... | wickykane/lyd-wp-plugins | plugins/lyd-plugin/test/jest/store/stores.test.tsx | TypeScript |
ArrowFunction |
() => {
it("should cache context factory result", () => {
RootStore.get.context;
RootStore.get.context;
expect(createContextFactory).toHaveBeenCalledTimes(1);
});
} | wickykane/lyd-wp-plugins | plugins/lyd-plugin/test/jest/store/stores.test.tsx | TypeScript |
ArrowFunction |
() => {
RootStore.get.context;
RootStore.get.context;
expect(createContextFactory).toHaveBeenCalledTimes(1);
} | wickykane/lyd-wp-plugins | plugins/lyd-plugin/test/jest/store/stores.test.tsx | TypeScript |
ArrowFunction |
() => {
it("should act as singleton", () => {
RootStore.get;
RootStore.get;
expect(TodoStore).toHaveBeenCalledTimes(1);
});
it("should initiate multiple stores", () => {
RootStore.get;
expect(TodoStor... | wickykane/lyd-wp-plugins | plugins/lyd-plugin/test/jest/store/stores.test.tsx | TypeScript |
ArrowFunction |
() => {
RootStore.get;
RootStore.get;
expect(TodoStore).toHaveBeenCalledTimes(1);
} | wickykane/lyd-wp-plugins | plugins/lyd-plugin/test/jest/store/stores.test.tsx | TypeScript |
ArrowFunction |
() => {
RootStore.get;
expect(TodoStore).toHaveBeenCalledWith(expect.any(Object));
expect(OptionStore).toHaveBeenCalledWith(expect.any(Object));
} | wickykane/lyd-wp-plugins | plugins/lyd-plugin/test/jest/store/stores.test.tsx | TypeScript |
ArrowFunction |
() => {
it("should obtain StoreProvider from factory", () => {
jest.spyOn(RootStore.prototype, "context", "get").mockReturnValue({
StoreContext: null,
StoreProvider: jest.fn(),
useStores: null
});
c... | wickykane/lyd-wp-plugins | plugins/lyd-plugin/test/jest/store/stores.test.tsx | TypeScript |
ArrowFunction |
() => {
jest.spyOn(RootStore.prototype, "context", "get").mockReturnValue({
StoreContext: null,
StoreProvider: jest.fn(),
useStores: null
});
const actual = RootStore.StoreProvider;
expect(actu... | wickykane/lyd-wp-plugins | plugins/lyd-plugin/test/jest/store/stores.test.tsx | TypeScript |
ArrowFunction |
() => {
it("should get StoreContext from factory result", () => {
const mockUseStores = jest.fn();
jest.spyOn(RootStore.prototype, "context", "get").mockReturnValue({
StoreContext: null,
StoreProvider: null,
useStores: mockUseStores
... | wickykane/lyd-wp-plugins | plugins/lyd-plugin/test/jest/store/stores.test.tsx | TypeScript |
ArrowFunction |
() => {
const mockUseStores = jest.fn();
jest.spyOn(RootStore.prototype, "context", "get").mockReturnValue({
StoreContext: null,
StoreProvider: null,
useStores: mockUseStores
});
useStores();
expect(mockUseSto... | wickykane/lyd-wp-plugins | plugins/lyd-plugin/test/jest/store/stores.test.tsx | TypeScript |
ClassDeclaration |
@Module({
imports: [TypeOrmModule.forFeature([Product, Brand, Category])],
controllers: [ProductsController, CategoriesController, BrandsController],
providers: [ProductsService, CategoriesService, BrandsService],
})
export class ProductsModule {} | nicobytes/nestjs-02 | src/products/products.module.ts | TypeScript |
TypeAliasDeclaration |
export type PublicFormAuthRedirectDto = { redirectURL: string } | ICTASL/FormSG | shared/types/form/form_auth.ts | TypeScript |
TypeAliasDeclaration |
export type PublicFormAuthValidateEsrvcIdDto =
| { isValid: true }
| { isValid: false; errorCode: string | null } | ICTASL/FormSG | shared/types/form/form_auth.ts | TypeScript |
TypeAliasDeclaration |
export type PublicFormAuthLogoutDto = { message: string } | ICTASL/FormSG | shared/types/form/form_auth.ts | TypeScript |
ClassDeclaration |
@Component({
selector: 'app-orden-gasto',
templateUrl: './orden-gasto.component.html',
styleUrls: ['./orden-gasto.component.scss']
})
export class OrdenGastoComponent implements OnInit {
ordenGasto: OrdenGasto;
ordenGastoOne: Array<OrdenGasto>;w
constructor( private Servicios: Orde) { }
ngOnInit() {
... | DJRICHARD15/FrontEnd | .history/src/app/orden-gasto/orden-gasto.component_20190318093451.ts | TypeScript |
InterfaceDeclaration |
export interface IInputs extends ServerlessProfile {
props: IProperties;
args: string;
path: {
configPath: string; // 配置路径
};
credentials?: ICredentials;
argsObj: any;
command: string;
} | DevDengChao/fc | src/lib/interface/interface.ts | TypeScript |
InterfaceDeclaration |
export interface IProperties {
region: string;
service?: ServiceConfig;
function?: FunctionConfig;
triggers?: TriggerConfig[];
customDomains?: CustomDomainConfig[];
} | DevDengChao/fc | src/lib/interface/interface.ts | TypeScript |
ClassDeclaration |
export class Product {
id: number;
name: string;
price: number;
description: string;
details: string;
imgUrl: string;
target: string;
category: string;
type: string;
imagesUrl: string[];
} | dekapp/OnlineShop-FrontEnd | OnlineShop-FrontEnd/src/app/middle wrapper/shared/product.ts | TypeScript |
ArrowFunction |
t => {
transformUnitTestProgram(t, 'union')
.assertTypesEqual({
Union: {
kind: Kind.union,
types: [
{
kind: Kind.literal,
atom: Atom.string,
value: 'a',
},
{
kind: Kind.literal,
atom: Atom.string,
... | hchauvin/reify-ts | packages/reify_ts/src/__tests__/union.test.ts | TypeScript |
InterfaceDeclaration |
export interface Friend extends Document {
readonly name: string;
readonly status: boolean;
} | DiRaiks/football-planner-server-nestjs | src/players/interfaces/friend.interface.ts | TypeScript |
ArrowFunction |
(coverage) => {
if (coverage != null) {
if (coverage === 'Not Covered') {
this.notCovered = true;
this.dataService.Objects[this.dataService.currentObject].Coverage = 'Not Covered';
} else {
const current = this.data... | Avola/avola-rocks-angular | src/app/components/object-details/object-details.component.ts | TypeScript |
ArrowFunction |
(object) => {
if (object.Brand === item.title) {
this.modelList.push(object.Model);
}
} | Avola/avola-rocks-angular | src/app/components/object-details/object-details.component.ts | TypeScript |
ArrowFunction |
(object) => {
if (object.Brand !== '' && this.brandList.find(b => b === object.Brand) == null
&& this.dataService.listLuggageClaimObjectCoverage[this.dataService.currentObject].LuggageClaimObject === object.LuggageClaimObject) {
this.brandList.push(object.Brand);... | Avola/avola-rocks-angular | src/app/components/object-details/object-details.component.ts | TypeScript |
ArrowFunction |
b => b === object.Brand | Avola/avola-rocks-angular | src/app/components/object-details/object-details.component.ts | TypeScript |
ArrowFunction |
p => p.Name === 'ValueListId' | Avola/avola-rocks-angular | src/app/components/object-details/object-details.component.ts | TypeScript |
ArrowFunction |
p => p.Name === 'PairId' | Avola/avola-rocks-angular | src/app/components/object-details/object-details.component.ts | TypeScript |
ArrowFunction |
(object) => {
if (object.Brand !== '' && this.brandList.find(b => b === object.Brand) == null
&& this.dataService.listLuggageClaimObjectCoverage[this.dataService.currentObject].LuggageClaimObject === object.LuggageClaimObject) {
this.brandList.push(object.Brand);
... | Avola/avola-rocks-angular | src/app/components/object-details/object-details.component.ts | TypeScript |
ClassDeclaration |
@Component({
selector: 'object-details',
templateUrl: './object-details.component.html',
providers: [AvolaClientService]
})
export class ObjectDetailsComponent implements OnInit, OnDestroy, OnChanges {
notCovered = false;
objectLocation: ListData;
handLuggage: PairData;
completerDataService... | Avola/avola-rocks-angular | src/app/components/object-details/object-details.component.ts | TypeScript |
MethodDeclaration |
ngOnInit(): void {
this.prepareValuePairsAndLists();
this.completerDataServiceBrand = this.completerService.local(this.brandList);
} | Avola/avola-rocks-angular | src/app/components/object-details/object-details.component.ts | TypeScript |
MethodDeclaration |
ngOnChanges(changes: any): void {
} | Avola/avola-rocks-angular | src/app/components/object-details/object-details.component.ts | TypeScript |
MethodDeclaration |
ngOnDestroy(): void {
} | Avola/avola-rocks-angular | src/app/components/object-details/object-details.component.ts | TypeScript |
MethodDeclaration |
public checkCoverage() {
this.avolaclient.checkObjectCoverage(this.dataService.listLuggageClaimObjectCoverage[this.dataService.currentObject]).subscribe((coverage) => {
if (coverage != null) {
if (coverage === 'Not Covered') {
this.notCovered = true;
... | Avola/avola-rocks-angular | src/app/components/object-details/object-details.component.ts | TypeScript |
MethodDeclaration |
public onSelected(item: any): void {
this.modelList = [];
if (item != null) {
this.dataService.allObjects.forEach((object) => {
if (object.Brand === item.title) {
this.modelList.push(object.Model);
}
});
this.comple... | Avola/avola-rocks-angular | src/app/components/object-details/object-details.component.ts | TypeScript |
MethodDeclaration |
public nextObject() {
this.notCovered = false;
if (this.dataService.Objects.length > this.dataService.currentObject + 1) {
this.dataService.currentObject++;
this.dataService.listLuggageClaimObjectCoverage[this.dataService.currentObject].LuggageClaimObjectinHandLuggage = this.ha... | Avola/avola-rocks-angular | src/app/components/object-details/object-details.component.ts | TypeScript |
MethodDeclaration |
public prepareValuePairsAndLists(): void {
const objectLocationId = this.dataService.mappedDatas[10].Properties.find(p => p.Name === 'ValueListId').Value;
this.objectLocation = this.dataService.mappedLists[objectLocationId];
const handLuggageId = this.dataService.mappedDatas[9].Properties.find... | Avola/avola-rocks-angular | src/app/components/object-details/object-details.component.ts | TypeScript |
ClassDeclaration |
@customElement("ha-device-triggers-card")
export class HaDeviceTriggersCard extends HaDeviceAutomationCard<
DeviceTrigger
> {
protected type = "trigger";
protected headerKey = "ui.panel.config.devices.automation.triggers.caption";
constructor() {
super(localizeDeviceAutomationTrigger);
}
} | Alex9779/home-assistant-polymer | src/panels/config/devices/device-detail/ha-device-triggers-card.ts | TypeScript |
InterfaceDeclaration |
interface HTMLElementTagNameMap {
"ha-device-triggers-card": HaDeviceTriggersCard;
} | Alex9779/home-assistant-polymer | src/panels/config/devices/device-detail/ha-device-triggers-card.ts | TypeScript |
FunctionDeclaration |
function MyApp({ Component, pageProps }: AppProps) {
return (
<ChakraProvider resetCSS theme={theme}>
<Header />
<Component {...pageProps} />
</ChakraProvider>
)
} | alan-dx/ignite-worldtrip | src/pages/_app.tsx | TypeScript |
FunctionDeclaration |
function App() {
let jsx: JSX.Element;
switch (query.get('success')) {
case 'once':
jsx = <Once />;
break;
case 'monthly':
jsx = <Monthly />;
break;
default:
jsx = (
<>
<Summary />
<Form
amounts={[5, 10, 20, 50]}
currenc... | MaxDesiatov/fosspay | frontend/src/App.tsx | TypeScript |
FunctionDeclaration |
function RenderBarcode({ code, invalid }: PropTypes) {
const svgRef = useCallback(
(node) => {
if (node !== null) {
jsbarcode(node, code, {
font: 'IBM Plex Sans',
margin: 0,
marginBottom: 5,
})
}
},
[code],
)
return (
<svg
className... | Fuglar-ehf/island.is | apps/gjafakort/web/screens/User/components/RenderBarcode/RenderBarcode.tsx | TypeScript |
ArrowFunction |
(node) => {
if (node !== null) {
jsbarcode(node, code, {
font: 'IBM Plex Sans',
margin: 0,
marginBottom: 5,
})
}
} | Fuglar-ehf/island.is | apps/gjafakort/web/screens/User/components/RenderBarcode/RenderBarcode.tsx | TypeScript |
InterfaceDeclaration |
interface PropTypes {
code: string
invalid: boolean
} | Fuglar-ehf/island.is | apps/gjafakort/web/screens/User/components/RenderBarcode/RenderBarcode.tsx | TypeScript |
ArrowFunction |
e => {
try {
return JSON.parse(e.message).message;
} catch (_) {
return e.message;
}
} | Global19/opencollective-api | server/lib/paypal.ts | TypeScript |
ArrowFunction |
({ token, clientId }: ConnectedAccount): ReturnType<typeof paypal.core.PayPalHttpClient> => {
const environment =
config.env === 'production'
? new paypal.core.LiveEnvironment(clientId, token)
: new paypal.core.SandboxEnvironment(clientId, token);
return new paypal.core.PayPalHttpClient(environmen... | Global19/opencollective-api | server/lib/paypal.ts | TypeScript |
ArrowFunction |
async (
connectedAccount: ConnectedAccount,
request: PayoutRequestBody | Record<string, any>,
): Promise<any> => {
try {
const client = getPayPalClient(connectedAccount);
const response = await client.execute(request);
return response.result;
} catch (e) {
throw new Error(parseError(e));
}
} | Global19/opencollective-api | server/lib/paypal.ts | TypeScript |
ArrowFunction |
async (
connectedAccount: ConnectedAccount,
requestBody: PayoutRequestBody,
): Promise<PayoutRequestResult> => {
const request = new paypal.payouts.PayoutsPostRequest();
request.requestBody(requestBody);
return executeRequest(connectedAccount, request);
} | Global19/opencollective-api | server/lib/paypal.ts | TypeScript |
ArrowFunction |
async (
connectedAccount: ConnectedAccount,
batchId: string,
): Promise<PayoutBatchDetails> => {
const request = new paypal.payouts.PayoutsGetRequest(batchId);
request.page(1);
request.pageSize(100);
request.totalRequired(true);
return executeRequest(connectedAccount, request);
} | Global19/opencollective-api | server/lib/paypal.ts | TypeScript |
ArrowFunction |
async ({ token, clientId }: ConnectedAccount): Promise<void> => {
const client = getPayPalClient({ token, clientId });
await client.fetchAccessToken();
} | Global19/opencollective-api | server/lib/paypal.ts | TypeScript |
ArrowFunction |
async (
{ token, clientId, settings }: ConnectedAccount,
req: any,
): Promise<void> => {
const client = getPayPalClient({ token, clientId });
const request = {
path: '/v1/notifications/verify-webhook-signature',
verb: 'POST',
body: {
auth_algo: req.get('PAYPAL-AUTH-ALGO'),
cert_url: req... | Global19/opencollective-api | server/lib/paypal.ts | TypeScript |
TypeAliasDeclaration |
type ConnectedAccount = {
token: string;
clientId: string;
settings?: {
webhookId: string;
};
}; | Global19/opencollective-api | server/lib/paypal.ts | TypeScript |
ClassDeclaration | // Copyright 2018 The Oppia Authors. All Rights Reserved.
//
// 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 required by ap... | AbhinavGopal/oppiabackup | core/templates/services/services.constants.ts | TypeScript |
ArrowFunction |
() => { this.destroyProvider(provider) } | Heat-Ledger-Ltd/heat-ui | app/src/services/AbstractDataProvider.ts | TypeScript |
ArrowFunction |
(p) => p != provider | Heat-Ledger-Ltd/heat-ui | app/src/services/AbstractDataProvider.ts | TypeScript |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.