type stringclasses 7
values | content stringlengths 4 9.55k | repo stringlengths 7 96 | path stringlengths 4 178 | language stringclasses 1
value |
|---|---|---|---|---|
ClassDeclaration | /** Colunm Layout Component */
export class Col extends ElCol {} | exarcheia/element | types/exarcheia-element.d.ts | TypeScript |
ClassDeclaration | /** Collapse Component */
export class Collapse extends ElCollapse {} | exarcheia/element | types/exarcheia-element.d.ts | TypeScript |
ClassDeclaration | /** Collapse Item Component */
export class CollapseItem extends ElCollapseItem {} | exarcheia/element | types/exarcheia-element.d.ts | TypeScript |
ClassDeclaration | /** Color Picker Component */
export class ColorPicker extends ElColorPicker {} | exarcheia/element | types/exarcheia-element.d.ts | TypeScript |
ClassDeclaration | /** Container Component */
export class Container extends ElContainer {} | exarcheia/element | types/exarcheia-element.d.ts | TypeScript |
ClassDeclaration | /** Date Picker Component */
export class DatePicker extends ElDatePicker {} | exarcheia/element | types/exarcheia-element.d.ts | TypeScript |
ClassDeclaration | /** Dialog Component */
export class Dialog extends ElDialog {} | exarcheia/element | types/exarcheia-element.d.ts | TypeScript |
ClassDeclaration | /** Dropdown Component */
export class Dropdown extends ElDropdown {} | exarcheia/element | types/exarcheia-element.d.ts | TypeScript |
ClassDeclaration | /** Dropdown Item Component */
export class DropdownItem extends ElDropdownItem {} | exarcheia/element | types/exarcheia-element.d.ts | TypeScript |
ClassDeclaration | /** Dropdown Menu Component */
export class DropdownMenu extends ElDropdownMenu {} | exarcheia/element | types/exarcheia-element.d.ts | TypeScript |
ClassDeclaration | /** Footer Component */
export class Footer extends ElFooter {} | exarcheia/element | types/exarcheia-element.d.ts | TypeScript |
ClassDeclaration | /** Form Component */
export class Form extends ElForm {} | exarcheia/element | types/exarcheia-element.d.ts | TypeScript |
ClassDeclaration | /** Form Item Component */
export class FormItem extends ElFormItem {} | exarcheia/element | types/exarcheia-element.d.ts | TypeScript |
ClassDeclaration | /** Header Component */
export class Header extends ElHeader {} | exarcheia/element | types/exarcheia-element.d.ts | TypeScript |
ClassDeclaration | /** Input Component */
export class Input extends ElInput {} | exarcheia/element | types/exarcheia-element.d.ts | TypeScript |
ClassDeclaration | /** Input Number Component */
export class InputNumber extends ElInputNumber {} | exarcheia/element | types/exarcheia-element.d.ts | TypeScript |
ClassDeclaration | /** Main Component */
export class Main extends ElMain {} | exarcheia/element | types/exarcheia-element.d.ts | TypeScript |
ClassDeclaration | /** Menu that provides navigation for your website */
export class Menu extends ElMenu {} | exarcheia/element | types/exarcheia-element.d.ts | TypeScript |
ClassDeclaration | /** Menu Item Component */
export class MenuItem extends ElMenuItem {} | exarcheia/element | types/exarcheia-element.d.ts | TypeScript |
ClassDeclaration | /** Menu Item Group Component */
export class MenuItemGroup extends ElMenuItemGroup {} | exarcheia/element | types/exarcheia-element.d.ts | TypeScript |
ClassDeclaration | /** Dropdown Select Option Component */
export class Option extends ElOption {} | exarcheia/element | types/exarcheia-element.d.ts | TypeScript |
ClassDeclaration | /** Dropdown Select Option Group Component */
export class OptionGroup extends ElOptionGroup {} | exarcheia/element | types/exarcheia-element.d.ts | TypeScript |
ClassDeclaration | /** Pagination Component */
export class Pagination extends ElPagination {} | exarcheia/element | types/exarcheia-element.d.ts | TypeScript |
ClassDeclaration | /** Popover Component */
export class Popover extends ElPopover {} | exarcheia/element | types/exarcheia-element.d.ts | TypeScript |
ClassDeclaration | /** Progress Component */
export class Progress extends ElProgress {} | exarcheia/element | types/exarcheia-element.d.ts | TypeScript |
ClassDeclaration | /** Rate Component */
export class Rate extends ElRate {} | exarcheia/element | types/exarcheia-element.d.ts | TypeScript |
ClassDeclaration | /** Radio Component */
export class Radio extends ElRadio {} | exarcheia/element | types/exarcheia-element.d.ts | TypeScript |
ClassDeclaration | /** Radio Button Component */
export class RadioButton extends ElRadioButton {} | exarcheia/element | types/exarcheia-element.d.ts | TypeScript |
ClassDeclaration | /** Radio Group Component */
export class RadioGroup extends ElRadioGroup {} | exarcheia/element | types/exarcheia-element.d.ts | TypeScript |
ClassDeclaration | /** Row Layout Component */
export class Row extends ElRow {} | exarcheia/element | types/exarcheia-element.d.ts | TypeScript |
ClassDeclaration | /** Dropdown Select Component */
export class Select extends ElSelect {} | exarcheia/element | types/exarcheia-element.d.ts | TypeScript |
ClassDeclaration | /** Slider Component */
export class Slider extends ElSlider {} | exarcheia/element | types/exarcheia-element.d.ts | TypeScript |
ClassDeclaration | /** Step Component */
export class Step extends ElStep {} | exarcheia/element | types/exarcheia-element.d.ts | TypeScript |
ClassDeclaration | /** Steps Component */
export class Steps extends ElSteps {} | exarcheia/element | types/exarcheia-element.d.ts | TypeScript |
ClassDeclaration | /** Submenu Component */
export class Submenu extends ElSubmenu {} | exarcheia/element | types/exarcheia-element.d.ts | TypeScript |
ClassDeclaration | /** Switch Component */
export class Switch extends ElSwitch {} | exarcheia/element | types/exarcheia-element.d.ts | TypeScript |
ClassDeclaration | /** Table Component */
export class Table extends ElTable {} | exarcheia/element | types/exarcheia-element.d.ts | TypeScript |
ClassDeclaration | /** Table Column Component */
export class TableColumn extends ElTableColumn {} | exarcheia/element | types/exarcheia-element.d.ts | TypeScript |
ClassDeclaration | /** Tabs Component */
export class Tabs extends ElTabs {} | exarcheia/element | types/exarcheia-element.d.ts | TypeScript |
ClassDeclaration | /** Tab Pane Component */
export class TabPane extends ElTabPane {} | exarcheia/element | types/exarcheia-element.d.ts | TypeScript |
ClassDeclaration | /** Tag Component */
export class Tag extends ElTag {} | exarcheia/element | types/exarcheia-element.d.ts | TypeScript |
ClassDeclaration | /** Timeline Component */
export class Timeline extends ElTimeline {} | exarcheia/element | types/exarcheia-element.d.ts | TypeScript |
ClassDeclaration | /** Timeline Item Component */
export class TimelineItem extends ElTimelineItem {} | exarcheia/element | types/exarcheia-element.d.ts | TypeScript |
ClassDeclaration | /** TimePicker Component */
export class TimePicker extends ElTimePicker {} | exarcheia/element | types/exarcheia-element.d.ts | TypeScript |
ClassDeclaration | /** TimeSelect Component */
export class TimeSelect extends ElTimeSelect {} | exarcheia/element | types/exarcheia-element.d.ts | TypeScript |
ClassDeclaration | /** Tooltip Component */
export class Tooltip extends ElTooltip {} | exarcheia/element | types/exarcheia-element.d.ts | TypeScript |
ClassDeclaration | /** Transfer Component */
export class Transfer extends ElTransfer {} | exarcheia/element | types/exarcheia-element.d.ts | TypeScript |
ClassDeclaration | /** Tree Component */
export class Tree<K = any, D = TreeData> extends ElTree<K, D> {} | exarcheia/element | types/exarcheia-element.d.ts | TypeScript |
ClassDeclaration | /** Upload Component */
export class Upload extends ElUpload {} | exarcheia/element | types/exarcheia-element.d.ts | TypeScript |
ClassDeclaration | /** Divider Component */
export class Divider extends ElDivider {} | exarcheia/element | types/exarcheia-element.d.ts | TypeScript |
ClassDeclaration | /** Link Component */
export class Link extends ElLink {} | exarcheia/element | types/exarcheia-element.d.ts | TypeScript |
ClassDeclaration | /** Image Component */
export class Image extends ElImage {} | exarcheia/element | types/exarcheia-element.d.ts | TypeScript |
ClassDeclaration | /** Icon Component */
export class Icon extends ElIcon {} | exarcheia/element | types/exarcheia-element.d.ts | TypeScript |
ClassDeclaration | /** Calendar Component */
export class Calendar extends ElCalendar {} | exarcheia/element | types/exarcheia-element.d.ts | TypeScript |
ClassDeclaration | /** Backtop Component */
export class Backtop extends ElBacktop {} | exarcheia/element | types/exarcheia-element.d.ts | TypeScript |
ClassDeclaration | /** PageHeader Component */
export class PageHeader extends ElPageHeader {} | exarcheia/element | types/exarcheia-element.d.ts | TypeScript |
ClassDeclaration | /** Avatar Component */
export class Avatar extends ElAvatar {} | exarcheia/element | types/exarcheia-element.d.ts | TypeScript |
ClassDeclaration | /** Drawer Component */
export class Drawer extends ElDrawer {} | exarcheia/element | types/exarcheia-element.d.ts | TypeScript |
ClassDeclaration | /** Popconfirm Component */
export class Popconfirm extends ElPopconfirm {} | exarcheia/element | types/exarcheia-element.d.ts | TypeScript |
InterfaceDeclaration |
export interface InstallationOptions {
locale: any,
i18n: any,
size: string
} | exarcheia/element | types/exarcheia-element.d.ts | TypeScript |
TypeAliasDeclaration | /** ElementUI component common definition */
export type Component = ElementUIComponent | exarcheia/element | types/exarcheia-element.d.ts | TypeScript |
TypeAliasDeclaration | /** Component size definition for button, input, etc */
export type ComponentSize = ElementUIComponentSize | exarcheia/element | types/exarcheia-element.d.ts | TypeScript |
TypeAliasDeclaration | /** Horizontal alignment */
export type HorizontalAlignment = ElementUIHorizontalAlignment | exarcheia/element | types/exarcheia-element.d.ts | TypeScript |
ArrowFunction |
position => {
this.singleProductsCache.set(url, position);
} | Defiance99/shopfull | client/src/app/shared/services/product.service.ts | TypeScript |
ArrowFunction |
position => {
cache.set(url, position);
} | Defiance99/shopfull | client/src/app/shared/services/product.service.ts | TypeScript |
ClassDeclaration |
@Injectable({
providedIn: 'root'
})
export class ProductService {
catalogProductsCache = new Map();
filteredProductsCache = new Map();
singleProductsCache = new Map();
constructor(private http: HttpClient) {
}
create(form: Product, images?: File[]): Observable<Product> {
const f... | Defiance99/shopfull | client/src/app/shared/services/product.service.ts | TypeScript |
MethodDeclaration |
create(form: Product, images?: File[]): Observable<Product> {
const fd = new FormData();
if (images) {
for (let image of images) {
fd.append('images', image, image.name);
}
}
fd.append('price', form.price);
fd.append('name', form.name);
... | Defiance99/shopfull | client/src/app/shared/services/product.service.ts | TypeScript |
MethodDeclaration |
getByFilters(category: string = '%', day: string = '%'): Observable<Product[]> {
const url = `/api/product/getByFilters?category=${category}&day=${day}`;
return this.toCache(url, this.filteredProductsCache);
} | Defiance99/shopfull | client/src/app/shared/services/product.service.ts | TypeScript |
MethodDeclaration |
getById(id: string): Observable<Product> {
const url = `/api/product/getById/${id}`;
const productsFromCache = this.singleProductsCache.get(url);
if (productsFromCache) {
return of(productsFromCache)
}
const response = this.http.get<Product>(url);
response.su... | Defiance99/shopfull | client/src/app/shared/services/product.service.ts | TypeScript |
MethodDeclaration |
getProducts(limit: number = 8): Observable<Product[]> {
return this.http.get<Product[]>(`/api/product/getProducts?limit=${limit}`);
} | Defiance99/shopfull | client/src/app/shared/services/product.service.ts | TypeScript |
MethodDeclaration |
getAll(): Observable<Product[]> {
const url = '/api/product/getAll';
return this.toCache(url, this.catalogProductsCache);
} | Defiance99/shopfull | client/src/app/shared/services/product.service.ts | TypeScript |
MethodDeclaration |
toCache(url: string, cache: any): Observable<Product[]> {
const productsFromCache = cache.get(url);
if (productsFromCache) {
return of(productsFromCache)
}
const response = this.http.get<Product[]>(url);
response.subscribe(position => {
cache.set(url, pos... | Defiance99/shopfull | client/src/app/shared/services/product.service.ts | TypeScript |
ClassDeclaration |
@Module({
imports: [TypeOrmModule.forRoot(), UserModule, AnimalModule],
controllers: [AppController],
providers: [AppService],
})
export class AppModule {} | pazpaz13/relations-practice | src/app.module.ts | TypeScript |
FunctionDeclaration |
export function getInitiativeIdentifiers(teamId: string): string {
return `${TEAM}:${teamId}|${INITIATIVE_TYPE}`;
} | manwaring/initiative-tracker | app/initiatives/initiative.ts | TypeScript |
FunctionDeclaration |
export function getStatusDisplay(status: Status): string {
const display = status.toLowerCase().replace('_', ' ');
return display.charAt(0).toUpperCase() + display.slice(1);
} | manwaring/initiative-tracker | app/initiatives/initiative.ts | TypeScript |
FunctionDeclaration |
function getShortDescription(description: string, length: number = 160): string {
return description && description.length > length ? `${description.substring(0, length)}...` : description;
} | manwaring/initiative-tracker | app/initiatives/initiative.ts | TypeScript |
ClassDeclaration |
export class CreateInitiativeRequest {
initiativeId: string;
identifiers: string;
type: string;
team: {
id: string;
domain: string;
};
name: string;
description: string;
office: string;
channel: {
id: string;
name: string;
parsed: string;
};
status: Status;
createdBy: {
... | manwaring/initiative-tracker | app/initiatives/initiative.ts | TypeScript |
ClassDeclaration |
export class Initiative {
initiativeId: string;
name: string;
description: string;
shortDescription: string;
channel: {
id: string;
name: string;
parsed: string;
};
status: Status;
statusDisplay: string;
team: {
id: string;
domain: string;
};
office?: string;
members?: Membe... | manwaring/initiative-tracker | app/initiatives/initiative.ts | TypeScript |
InterfaceDeclaration |
export interface InitiativeRecord {
initiativeId: string;
identifiers: string;
[key: string]: any;
} | manwaring/initiative-tracker | app/initiatives/initiative.ts | TypeScript |
InterfaceDeclaration |
interface CreateInitiativeRequestProperties {
name: string;
team: {
id: string;
domain: string;
};
description?: string;
channel?: {
id: string;
name: string;
parsed: string;
};
createdBy: {
slackUserId: string;
name: string;
icon: string;
office?: string;
};
} | manwaring/initiative-tracker | app/initiatives/initiative.ts | TypeScript |
EnumDeclaration |
export enum Status {
ACTIVE = 'ACTIVE',
COMPLETE = 'COMPLETE',
ABANDONED = 'ABANDONED',
ON_HOLD = 'ON_HOLD'
} | manwaring/initiative-tracker | app/initiatives/initiative.ts | TypeScript |
FunctionDeclaration |
function returnThisMember(this: NoImplicitThisContainer, this: NoImplicitThisContainer) {
return this.member;
} | JoshuaKGoldberg/TypeStat | test/cases/fixes/noImplicitThis/expected.ts | TypeScript |
InterfaceDeclaration | // These would normally be wrapped in an IIFE, but:
// https://github.com/microsoft/TypeScript/issues/36309
export interface NoImplicitThisContainer {
member: string;
returnThisMember: () => string;
} | JoshuaKGoldberg/TypeStat | test/cases/fixes/noImplicitThis/expected.ts | TypeScript |
ClassDeclaration |
@Module({
providers: [
CollectionsResolver,
CollectionsService,
CollectiblesService,
UsersService,
PrismaService,
],
})
export class CollectionsModule {} | ubersl0th/collection-api | src/collections/collections.module.ts | TypeScript |
ArrowFunction |
({
options = [],
idToSelectedMap = {},
onChange,
className,
disabled,
compressed,
legend,
...rest
}) => {
const checkboxes = options.map((option, index) => {
const {
disabled: isOptionDisabled,
className: optionClass,
...optionRest
} = option;
return (
<EuiCheckbox... | Akshat-Jain/eui | src/components/form/checkbox/checkbox_group.tsx | TypeScript |
ArrowFunction |
(option, index) => {
const {
disabled: isOptionDisabled,
className: optionClass,
...optionRest
} = option;
return (
<EuiCheckbox
className={classNames('euiCheckboxGroup__item', optionClass)}
key={index}
checked={idToSelectedMap[option.id]}
disabled={d... | Akshat-Jain/eui | src/components/form/checkbox/checkbox_group.tsx | TypeScript |
InterfaceDeclaration |
export interface EuiCheckboxGroupOption
extends Omit<EuiCheckboxProps, 'checked' | 'onChange'> {
id: string;
} | Akshat-Jain/eui | src/components/form/checkbox/checkbox_group.tsx | TypeScript |
InterfaceDeclaration |
export interface EuiCheckboxGroupIdToSelectedMap {
[id: string]: boolean;
} | Akshat-Jain/eui | src/components/form/checkbox/checkbox_group.tsx | TypeScript |
TypeAliasDeclaration | // Must omit inherit `onChange` properties or else TS complaines when applying to the EuiRadio
type AsDivProps = Omit<HTMLAttributes<HTMLDivElement>, 'onChange'>; | Akshat-Jain/eui | src/components/form/checkbox/checkbox_group.tsx | TypeScript |
TypeAliasDeclaration |
type WithLegendProps = Omit<EuiFormFieldsetProps, 'onChange'> & {
/**
* If the individual labels for each radio do not provide a sufficient description, add a legend.
* Wraps the group in a `EuiFormFieldset` which adds an `EuiLegend` for titling the whole group.
* Accepts an `EuiFormLegendProps` shape.
*... | Akshat-Jain/eui | src/components/form/checkbox/checkbox_group.tsx | TypeScript |
TypeAliasDeclaration |
export type EuiCheckboxGroupProps = CommonProps & {
options: EuiCheckboxGroupOption[];
idToSelectedMap: EuiCheckboxGroupIdToSelectedMap;
onChange: (optionId: string) => void;
/**
* Tightens up the spacing between checkbox rows and sends down the
* compressed prop to the checkbox itself
*/
compressed... | Akshat-Jain/eui | src/components/form/checkbox/checkbox_group.tsx | TypeScript |
MethodDeclaration |
classNames('euiCheckboxGroup__item', optionClass) | Akshat-Jain/eui | src/components/form/checkbox/checkbox_group.tsx | TypeScript |
ClassDeclaration |
export class SubDataCodeDTO {
subDataCode: string;
subDataCodeDescription: string;
} | US-EPA-CAMD/easey-mdm-api | src/dto/sub-data-code.dto.ts | TypeScript |
ArrowFunction |
() => {
let component: BtnAppsComponent
let fixture: ComponentFixture<BtnAppsComponent>
beforeEach(async(() => {
TestBed.configureTestingModule({
declarations: [BtnAppsComponent],
})
.compileComponents()
}))
beforeEach(() => {
fixture = TestBed.createComponent(BtnAppsComponent)
co... | Haritest/sunbird-cb-creationportal-old | library/ws-widget/collection/src/lib/btn-apps/btn-apps.component.spec.ts | TypeScript |
ArrowFunction |
() => {
TestBed.configureTestingModule({
declarations: [BtnAppsComponent],
})
.compileComponents()
} | Haritest/sunbird-cb-creationportal-old | library/ws-widget/collection/src/lib/btn-apps/btn-apps.component.spec.ts | TypeScript |
ArrowFunction |
() => {
fixture = TestBed.createComponent(BtnAppsComponent)
component = fixture.componentInstance
fixture.detectChanges()
} | Haritest/sunbird-cb-creationportal-old | library/ws-widget/collection/src/lib/btn-apps/btn-apps.component.spec.ts | TypeScript |
FunctionDeclaration |
export default function main(params: any) {
return {
module: {
"xsd": "https://ibm.com/daas/module/1.0/module.xsd",
"source": {
"id": "CSV_File",
"srcUrl": {
"sourceUrl": "https://developer.ibm.com/static/site-id/141/bikeShareRidesDemographics.csv",
"mimeType": "te... | IBM-Cloud/openwhisk-cognos-dashboard | src/SampleModule.ts | TypeScript |
ClassDeclaration | /** Provides operations to call the forward method. */
export class ForwardPostRequestBody implements AdditionalDataHolder, Parsable {
/** Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. */
private _additionalData: Record<string, u... | microsoftgraph/msgraph-sdk-typescript | src/groups/item/calendarView/item/forward/forwardPostRequestBody.ts | TypeScript |
MethodDeclaration | /**
* The deserialization information for the current model
* @returns a Record<string, (node: ParseNode) => void>
*/
public getFieldDeserializers() : Record<string, (node: ParseNode) => void> {
return {
"comment": n => { this.comment = n.getStringValue(); },
"toRecipients... | microsoftgraph/msgraph-sdk-typescript | src/groups/item/calendarView/item/forward/forwardPostRequestBody.ts | TypeScript |
MethodDeclaration | /**
* Serializes information the current object
* @param writer Serialization writer to use to serialize this model
*/
public serialize(writer: SerializationWriter) : void {
if(!writer) throw new Error("writer cannot be undefined");
writer.writeStringValue("comment", this.comment);
... | microsoftgraph/msgraph-sdk-typescript | src/groups/item/calendarView/item/forward/forwardPostRequestBody.ts | TypeScript |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.