type stringclasses 7
values | content stringlengths 4 9.55k | repo stringlengths 7 96 | path stringlengths 4 178 | language stringclasses 1
value |
|---|---|---|---|---|
MethodDeclaration |
noResults() {
return (
<>
{/* https://www.crossref.org/blog/dois-and-matching-regular-expressions/ */}
{query.match(/^10.\d{4,9}\/[-._;()/:A-Z0-9]+$/i) ? (
<>
... | egonw/ResearchEquals.com | app/modules/components/ModuleEdit.tsx | TypeScript |
MethodDeclaration |
isEditing ? (
<EditOff24
className="h-6 w-6 fill-current text-gray-900 dark:text-gray-200"
onClick={() => {
setIsEditing | egonw/ResearchEquals.com | app/modules/components/ModuleEdit.tsx | TypeScript |
MethodDeclaration |
isEditing ? (
<MetadataEdit
module={moduleEdit}
setQueryData={setQueryData}
setIsEditing={setIsEditing}
/>
) : (
<MetadataView
module={moduleEdit}
addAuthors={addAuthors}
setQueryData={setQueryData}
... | egonw/ResearchEquals.com | app/modules/components/ModuleEdit.tsx | TypeScript |
MethodDeclaration |
async onSelect(params) {
const { item, setQuery } = params
if (item.suffix) {
toast.promise(
addReferenceMutation({
currentId: moduleEdit?.id,
connectId: item.objectID,
... | egonw/ResearchEquals.com | app/modules/components/ModuleEdit.tsx | TypeScript |
MethodDeclaration |
getItems() {
return getAlgoliaResults({
searchClient,
queries: [
{
indexName: `${process.env.ALGOLIA_PREFIX}_modules`,
query,
},
],
... | egonw/ResearchEquals.com | app/modules/components/ModuleEdit.tsx | TypeScript |
MethodDeclaration |
item({ item, components }) {
return (
<>
{item.__autocomplete_indexName.match(/_modules/g) ? (
<SearchResultModule item={item} />
) : (
""
... | egonw/ResearchEquals.com | app/modules/components/ModuleEdit.tsx | TypeScript |
MethodDeclaration |
return (
< | egonw/ResearchEquals.com | app/modules/components/ModuleEdit.tsx | TypeScript |
ArrowFunction |
(nodeIndex, volumeIndex) => (
value,
allValues,
) => {
const volumes = getDataVolumes(nodeIndex, allValues);
if (volumeIndex >= volumes.length) {
return;
}
if (!isFeatureVisible('Rancher.VolumeMountPoint')) {
return;
}
const volume = volumes[volumeIndex];
const minSize = getMinSize(volume.mou... | Niteshbhat/waldur-homeport | src/rancher/cluster/create/VolumeSizeGroup.tsx | TypeScript |
ArrowFunction |
(
value,
allValues,
) => {
const volumes = getDataVolumes(nodeIndex, allValues);
if (volumeIndex >= volumes.length) {
return;
}
if (!isFeatureVisible('Rancher.VolumeMountPoint')) {
return;
}
const volume = volumes[volumeIndex];
const minSize = getMinSize(volume.mount_point);
if (value < min... | Niteshbhat/waldur-homeport | src/rancher/cluster/create/VolumeSizeGroup.tsx | TypeScript |
ArrowFunction |
(props) => {
const validateVolumeSize = React.useMemo(
() => [
required,
createVolumeSizeValidator(props.nodeIndex, props.volumeIndex),
],
[props.nodeIndex, props.volumeIndex],
);
return (
<FormGroup label={translate('Volume size')} required={true}>
<Field
name="size"
... | Niteshbhat/waldur-homeport | src/rancher/cluster/create/VolumeSizeGroup.tsx | TypeScript |
ArrowFunction |
() => [
required,
createVolumeSizeValidator(props.nodeIndex, props.volumeIndex),
] | Niteshbhat/waldur-homeport | src/rancher/cluster/create/VolumeSizeGroup.tsx | TypeScript |
MethodDeclaration |
translate('Volume size') | Niteshbhat/waldur-homeport | src/rancher/cluster/create/VolumeSizeGroup.tsx | TypeScript |
MethodDeclaration |
translate('GB') | Niteshbhat/waldur-homeport | src/rancher/cluster/create/VolumeSizeGroup.tsx | TypeScript |
ArrowFunction |
() => {
beforeEach(() => {
TestBed.configureTestingModule({ declarations: [AppComponent]});
});
it ('should work', () => {
let fixture = TestBed.createComponent(AppComponent);
expect(fixture.componentInstance instanceof AppComponent).toBe(true, 'should create AppComponent');
});
} | sunwenyuan/date-time-picker | src/ui/application/app.component.test.ts | TypeScript |
ArrowFunction |
() => {
TestBed.configureTestingModule({ declarations: [AppComponent]});
} | sunwenyuan/date-time-picker | src/ui/application/app.component.test.ts | TypeScript |
ArrowFunction |
() => {
let fixture = TestBed.createComponent(AppComponent);
expect(fixture.componentInstance instanceof AppComponent).toBe(true, 'should create AppComponent');
} | sunwenyuan/date-time-picker | src/ui/application/app.component.test.ts | TypeScript |
ClassDeclaration |
export class PushcutTrigger implements INodeType {
description: INodeTypeDescription = {
displayName: 'Pushcut Trigger',
name: 'pushcutTrigger',
icon: 'file:pushcut.png',
group: ['trigger'],
version: 1,
description: 'Starts the workflow when Pushcut events occur',
defaults: {
name: 'Pushcut Trigger',... | 5-stones/n8n | packages/nodes-base/nodes/Pushcut/PushcutTrigger.node.ts | TypeScript |
MethodDeclaration |
async checkExists(this: IHookFunctions): Promise<boolean> {
const webhookUrl = this.getNodeWebhookUrl('default');
const webhookData = this.getWorkflowStaticData('node');
const actionName = this.getNodeParameter('actionName');
// Check all the webhooks which exist already if it is identical to the
/... | 5-stones/n8n | packages/nodes-base/nodes/Pushcut/PushcutTrigger.node.ts | TypeScript |
MethodDeclaration |
async create(this: IHookFunctions): Promise<boolean> {
const webhookData = this.getWorkflowStaticData('node');
const webhookUrl = this.getNodeWebhookUrl('default');
const actionName = this.getNodeParameter('actionName');
const endpoint = '/subscriptions';
const body = {
actionName,
url:... | 5-stones/n8n | packages/nodes-base/nodes/Pushcut/PushcutTrigger.node.ts | TypeScript |
MethodDeclaration |
async delete(this: IHookFunctions): Promise<boolean> {
const webhookData = this.getWorkflowStaticData('node');
if (webhookData.webhookId !== undefined) {
const endpoint = `/subscriptions/${webhookData.webhookId}`;
try {
await pushcutApiRequest.call(this, 'DELETE', endpoint);
} catch (err... | 5-stones/n8n | packages/nodes-base/nodes/Pushcut/PushcutTrigger.node.ts | TypeScript |
MethodDeclaration |
async webhook(this: IWebhookFunctions): Promise<IWebhookResponseData> {
const body = this.getBodyData() as IDataObject;
return {
workflowData: [
this.helpers.returnJsonArray(body),
],
};
} | 5-stones/n8n | packages/nodes-base/nodes/Pushcut/PushcutTrigger.node.ts | TypeScript |
ClassDeclaration |
export class CreateUserDto {
@ApiProperty()
displayName: string;
@ApiProperty()
password: string;
@ApiProperty()
email: string;
} | GuusSeldenthuis/Working-Title | src/user/dto/create-user.dto.ts | TypeScript |
ArrowFunction |
() => {
test('waits for element to be added to the DOM', async () => {
await render(FixtureComponent);
await expect(screen.findByText('I am visible')).resolves.toBeTruthy();
});
test('rejects when something cannot be found', async () => {
await render(FixtureComponent);
await expect(screen.findB... | GlebIrovich/angular-testing-library | projects/testing-library/tests/find-by.spec.ts | TypeScript |
ArrowFunction |
async () => {
await render(FixtureComponent);
await expect(screen.findByText('I am visible')).resolves.toBeTruthy();
} | GlebIrovich/angular-testing-library | projects/testing-library/tests/find-by.spec.ts | TypeScript |
ArrowFunction |
async () => {
await render(FixtureComponent);
await expect(screen.findByText('I am invisible', {}, { timeout: 40 })).rejects.toThrow('x');
} | GlebIrovich/angular-testing-library | projects/testing-library/tests/find-by.spec.ts | TypeScript |
ArrowFunction |
() => {
test('waits for element to be added to the DOM', async () => {
const { findByText } = await render(FixtureComponent);
await expect(findByText('I am visible')).resolves.toBeTruthy();
});
test('rejects when something cannot be found', async () => {
const { findByText } = await render(FixtureCo... | GlebIrovich/angular-testing-library | projects/testing-library/tests/find-by.spec.ts | TypeScript |
ArrowFunction |
async () => {
const { findByText } = await render(FixtureComponent);
await expect(findByText('I am visible')).resolves.toBeTruthy();
} | GlebIrovich/angular-testing-library | projects/testing-library/tests/find-by.spec.ts | TypeScript |
ArrowFunction |
async () => {
const { findByText } = await render(FixtureComponent);
await expect(findByText('I am invisible', {}, { timeout: 40 })).rejects.toThrow('x');
} | GlebIrovich/angular-testing-library | projects/testing-library/tests/find-by.spec.ts | TypeScript |
ClassDeclaration |
@Component({
selector: 'fixture',
template: ` <div>{{ result | async }}</div> `,
})
class FixtureComponent {
result = timer(30).pipe(mapTo('I am visible'));
} | GlebIrovich/angular-testing-library | projects/testing-library/tests/find-by.spec.ts | TypeScript |
ArrowFunction |
d => {
this.deliveryservice = d;
this.loaded.set("main", true);
this.loadBandwidth();
this.loadTPS();
} | TaylorCFrey/trafficcontrol | experimental/traffic-portal/src/app/core/deliveryservice/deliveryservice.component.ts | TypeScript |
ArrowFunction |
data => {
const va = new Array<DataPoint>();
for (const v of data.series.values) {
if (v[1] === null) {
continue;
}
va.push({t: new Date(v[0]), y: v[1]} as DataPoint);
}
this.edgeBandwidth.data = va;
this.bandwidthData.next([this.edgeBandwidth, this.midBandwidth]);
} | TaylorCFrey/trafficcontrol | experimental/traffic-portal/src/app/core/deliveryservice/deliveryservice.component.ts | TypeScript |
ArrowFunction |
e => {
this.alerts.newAlert("warning", "Edge-Tier bandwidth data not found!");
console.error(`Failed to get edge KBPS data for '${xmlID}':`, e);
} | TaylorCFrey/trafficcontrol | experimental/traffic-portal/src/app/core/deliveryservice/deliveryservice.component.ts | TypeScript |
ArrowFunction |
data => {
const va = new Array<DataPoint>();
for (const v of data.series.values) {
if (v[1] === null) {
continue;
}
va.push({t: new Date(v[0]), y: v[1]} as DataPoint);
}
this.midBandwidth.data = va;
this.bandwidthData.next([this.edgeBandwidth, this.midBandwidth]);
} | TaylorCFrey/trafficcontrol | experimental/traffic-portal/src/app/core/deliveryservice/deliveryservice.component.ts | TypeScript |
ArrowFunction |
e => {
this.alerts.newAlert("warning", "Mid-Tier bandwidth data not found!");
console.error(`Failed to get mid KBPS data for '${xmlID}':`, e);
} | TaylorCFrey/trafficcontrol | experimental/traffic-portal/src/app/core/deliveryservice/deliveryservice.component.ts | TypeScript |
ArrowFunction |
data => {
data.total.dataSet.label = "Total";
data.total.dataSet.borderColor = "#3C96BA";
data.success.dataSet.label = "Successful Responses";
data.success.dataSet.borderColor = "#3CBA5F";
data.redirection.dataSet.label = "Redirection Responses";
data.redirection.dataSet.borderColor = "#9f3CBA"... | TaylorCFrey/trafficcontrol | experimental/traffic-portal/src/app/core/deliveryservice/deliveryservice.component.ts | TypeScript |
ArrowFunction |
e => {
console.error(`Failed to get edge TPS data for '${this.deliveryservice.xmlId}':`, e);
this.alerts.newAlert("warning", "Edge-Tier transaction data not found!");
} | TaylorCFrey/trafficcontrol | experimental/traffic-portal/src/app/core/deliveryservice/deliveryservice.component.ts | TypeScript |
MethodDeclaration | /**
* Runs initialization, including setting up date/time range controls and
* fetching data.
*/
public ngOnInit(): void {
const DSID = this.route.snapshot.paramMap.get("id");
if (!DSID) {
console.error("Missing route 'id' parameter");
return;
}
this.to.setUTCMilliseconds(0);
this.from = new Date... | TaylorCFrey/trafficcontrol | experimental/traffic-portal/src/app/core/deliveryservice/deliveryservice.component.ts | TypeScript |
MethodDeclaration | /**
* Runs when a new date/time range is selected by the user, updating the
* chart data accordingly.
*/
public newDateRange(): void {
this.to = new Date(this.toDate.value.concat("T", this.toTime.value));
this.from = new Date(this.fromDate.value.concat("T", this.fromTime.value));
// I need to set these exp... | TaylorCFrey/trafficcontrol | experimental/traffic-portal/src/app/core/deliveryservice/deliveryservice.component.ts | TypeScript |
MethodDeclaration | /**
* Loads new data for the bandwidth chart.
*/
private loadBandwidth(): void {
let interval: string;
if (this.bucketSize < 1) {
interval = "1m";
} else {
interval = `${Math.round(this.bucketSize)}m`;
}
const xmlID = this.deliveryservice.xmlId;
// Edge-tier data
this.api.getDSKBPS(xmlID, this... | TaylorCFrey/trafficcontrol | experimental/traffic-portal/src/app/core/deliveryservice/deliveryservice.component.ts | TypeScript |
MethodDeclaration | /**
* Loads new data for the TPS chart.
*/
private loadTPS(): void {
let interval: string;
if (this.bucketSize < 1) {
interval = "1m";
} else {
interval = `${Math.round(this.bucketSize)}m`;
}
this.api.getAllDSTPSData(this.deliveryservice.xmlId, this.from, this.to, interval, false).then(
data => ... | TaylorCFrey/trafficcontrol | experimental/traffic-portal/src/app/core/deliveryservice/deliveryservice.component.ts | TypeScript |
ClassDeclaration |
@Injectable()
export class QuestionTypeProvider extends BaseProvider<QuestionType> {
constructor(private readonly questionTypeRepo: QuestionTypeRepo) {
super(questionTypeRepo);
}
} | Maxrod98/Tamu.GeoInnovation.js.monorepo | libs/gisday/data-api/src/lib/providers/question-type/question-type.provider.ts | TypeScript |
ClassDeclaration |
export default class PatternPrompt {
protected _pipe: NodeJS.WritableStream;
protected _prompt: Prompt;
protected _entityName: string;
protected _currentUsageRows: number;
constructor(pipe: NodeJS.WritableStream, prompt: Prompt);
run(onSuccess: (value: string) => void, onCancel: () => voi... | GenaAiv/portfolio-website | node_modules/jest-watcher/build/PatternPrompt.d.ts | TypeScript |
MethodDeclaration |
run(onSuccess: (value: string) => void, onCancel: () => void, options?: {
header: string;
}): void; | GenaAiv/portfolio-website | node_modules/jest-watcher/build/PatternPrompt.d.ts | TypeScript |
MethodDeclaration |
protected _onChange(_pattern: string, _options: ScrollOptions): void; | GenaAiv/portfolio-website | node_modules/jest-watcher/build/PatternPrompt.d.ts | TypeScript |
FunctionDeclaration |
function createExpandDispatchContext() {
return createContext<DispatchAction | undefined>(undefined);
} | equinor/lighthouse-client | src/components/ParkView/Components/VirtualGarden/ExpandProvider.tsx | TypeScript |
ArrowFunction |
(state: State, action: Action): State => {
switch (action.type) {
case ActionType.EXPAND_COLUMN: {
let width = getDescriptionWidth(action.descriptionData, action.customDescription);
//Edge case here: if all subgroups are collapsed, the width will be
// 0 since no descrip... | equinor/lighthouse-client | src/components/ParkView/Components/VirtualGarden/ExpandProvider.tsx | TypeScript |
ArrowFunction |
(props: PropsWithChildren<ExpandProviderProps>) => {
const { initialWidths, children } = props;
const [state, dispatch] = useReducer(expandReducer, {
expandedColumns: {},
widths: initialWidths,
});
return (
<ExpandContext.Provider value={state}>
<ExpandDispatchCont... | equinor/lighthouse-client | src/components/ParkView/Components/VirtualGarden/ExpandProvider.tsx | TypeScript |
EnumDeclaration |
export enum ActionType {
EXPAND_COLUMN,
} | equinor/lighthouse-client | src/components/ParkView/Components/VirtualGarden/ExpandProvider.tsx | TypeScript |
TypeAliasDeclaration |
type Expanded = {
isExpanded: boolean;
index: number;
}; | equinor/lighthouse-client | src/components/ParkView/Components/VirtualGarden/ExpandProvider.tsx | TypeScript |
TypeAliasDeclaration |
type ExpandedItems = Record<string, Expanded>; | equinor/lighthouse-client | src/components/ParkView/Components/VirtualGarden/ExpandProvider.tsx | TypeScript |
TypeAliasDeclaration |
type State = {
expandedColumns: ExpandedItems;
widths: number[];
}; | equinor/lighthouse-client | src/components/ParkView/Components/VirtualGarden/ExpandProvider.tsx | TypeScript |
TypeAliasDeclaration |
type ExpandColumn<T extends unknown = any> = {
key: string;
index: number;
descriptionData: GardenItem<T>[] | null;
type: ActionType.EXPAND_COLUMN;
customDescription?: (item: T | GardenItem<T>) => string;
}; | equinor/lighthouse-client | src/components/ParkView/Components/VirtualGarden/ExpandProvider.tsx | TypeScript |
TypeAliasDeclaration |
type Action = ExpandColumn; | equinor/lighthouse-client | src/components/ParkView/Components/VirtualGarden/ExpandProvider.tsx | TypeScript |
TypeAliasDeclaration |
type DispatchAction = (action: Action) => void; | equinor/lighthouse-client | src/components/ParkView/Components/VirtualGarden/ExpandProvider.tsx | TypeScript |
TypeAliasDeclaration |
type ExpandProviderProps = {
initialWidths: number[];
}; | equinor/lighthouse-client | src/components/ParkView/Components/VirtualGarden/ExpandProvider.tsx | TypeScript |
ClassDeclaration |
@NgModule({
imports: [CommonModule, OutletModule, I18nModule],
providers: [
provideDefaultConfig(<CmsConfig>{
cmsComponents: {
ProductSummaryComponent: {
component: ProductSummaryComponent,
},
},
}),
],
declarations: [ProductSummaryComponent],
entryComponents: [P... | Changsuwan/spartacus | projects/storefrontlib/src/cms-components/product/product-summary/product-summary.module.ts | TypeScript |
ArrowFunction |
() => {
Taro.navigateBack({delta: 1})
} | merrier/WeHexo | client/src/components/headerNavbar/index.tsx | TypeScript |
ArrowFunction |
() => {
Taro.redirectTo({
url: '/pages/index/index'
})
} | merrier/WeHexo | client/src/components/headerNavbar/index.tsx | TypeScript |
ClassDeclaration |
export default class HeaderNavbar extends Component<IProps, IState> {
static defaultProps: IProps = {
hasBack: true,
hasHome: true,
hasTitle: true,
title: ''
}
constructor () {
super(...arguments)
this.state = {
systemInfo: Taro.getStorageSync('systemInfo'),
menuButton: Taro... | merrier/WeHexo | client/src/components/headerNavbar/index.tsx | TypeScript |
InterfaceDeclaration |
interface ISystemInfoSafeArea {
top: number,
[propName: string]: any;
} | merrier/WeHexo | client/src/components/headerNavbar/index.tsx | TypeScript |
InterfaceDeclaration |
interface ISystemInfo {
safeArea: ISystemInfoSafeArea,
[propName: string]: any;
} | merrier/WeHexo | client/src/components/headerNavbar/index.tsx | TypeScript |
InterfaceDeclaration |
interface IMenuButton {
width: number,
height: number,
top: number,
left: number,
right: number,
botton: number,
} | merrier/WeHexo | client/src/components/headerNavbar/index.tsx | TypeScript |
InterfaceDeclaration |
interface IProps {
hasBack?: boolean,
hasHome?: boolean,
hasTitle?: boolean,
title?: string
} | merrier/WeHexo | client/src/components/headerNavbar/index.tsx | TypeScript |
InterfaceDeclaration |
interface IState {
systemInfo: ISystemInfo,
menuButton: IMenuButton,
headerNavbarStyle: object,
headerNavbarButtonStyle: object,
} | merrier/WeHexo | client/src/components/headerNavbar/index.tsx | TypeScript |
MethodDeclaration |
componentWillMount() {
let { menuButton, systemInfo } = this.state;
let {hasBack, hasHome} = this.props
let headerNavbarStyle = {
with: `${ hasBack&&hasHome ? menuButton.width : menuButton.width/2 }px`,
height: `${menuButton.height}px`,
left: `${systemInfo.screenWidth - menuButton.right}p... | merrier/WeHexo | client/src/components/headerNavbar/index.tsx | TypeScript |
MethodDeclaration |
componentDidMount () {
} | merrier/WeHexo | client/src/components/headerNavbar/index.tsx | TypeScript |
MethodDeclaration |
render () {
// console.info(this.state)
let { headerNavbarStyle, headerNavbarButtonStyle } = this.state;
let { hasBack, hasHome } = this.props;
return (
<View className="header-navbar" style={headerNavbarStyle}>
{hasBack && (
<View className="header-navbar-button" onClick={this.... | merrier/WeHexo | client/src/components/headerNavbar/index.tsx | TypeScript |
ArrowFunction |
() => {
return (
<div>Lodash Example : {lodash.reduce([1, 2, 3], (prev, curr) => prev + curr, 0)}</div> | emilianox/shiny-typescript-boilerplate | src/components/Libraries/Lodash.tsx | TypeScript |
ArrowFunction |
props => {
const {width, onResizeStart, setRef, resizing} = createHorizontalResize({
minWidth: 600,
maxWidth: 1400,
});
const computedWidth = () => {
const size = width();
return size ? `${size}px` : 'auto';
};
const roundedWidth = () => `${Math.floor(width())}px`;
const modality = useMod... | riccardoperra/codeimage | apps/codeimage/src/components/Frame/Frame.tsx | TypeScript |
ArrowFunction |
() => {
const size = width();
return size ? `${size}px` : 'auto';
} | riccardoperra/codeimage | apps/codeimage/src/components/Frame/Frame.tsx | TypeScript |
ArrowFunction |
() => `${Math.floor(width())}px` | riccardoperra/codeimage | apps/codeimage/src/components/Frame/Frame.tsx | TypeScript |
MethodDeclaration |
assignInlineVars({
[styles.frameVars.width]: computedWidth | riccardoperra/codeimage | apps/codeimage/src/components/Frame/Frame.tsx | TypeScript |
MethodDeclaration |
assignInlineVars({
[styles.frameVars.backgroundColor]:
props | riccardoperra/codeimage | apps/codeimage/src/components/Frame/Frame.tsx | TypeScript |
MethodDeclaration |
resizing() | riccardoperra/codeimage | apps/codeimage/src/components/Frame/Frame.tsx | TypeScript |
MethodDeclaration |
roundedWidth() | riccardoperra/codeimage | apps/codeimage/src/components/Frame/Frame.tsx | TypeScript |
InterfaceDeclaration |
export interface Options {
headers?: Headers;
} | vpriem/ts-monorepo | packages/rest-client/src/types.ts | TypeScript |
InterfaceDeclaration |
export interface RequestOptions extends Omit<RequestInit, 'body'> {
headers?: Headers;
params?: Params;
query?: Query;
body?: object;
} | vpriem/ts-monorepo | packages/rest-client/src/types.ts | TypeScript |
TypeAliasDeclaration |
export type Headers = Record<string, string>; | vpriem/ts-monorepo | packages/rest-client/src/types.ts | TypeScript |
TypeAliasDeclaration |
export type Params = Record<string, string | number>; | vpriem/ts-monorepo | packages/rest-client/src/types.ts | TypeScript |
TypeAliasDeclaration |
export type Query = Record<
string,
| string
| string[]
| number
| number[]
| boolean
| boolean[]
| null
| undefined
>; | vpriem/ts-monorepo | packages/rest-client/src/types.ts | TypeScript |
InterfaceDeclaration | /**
* Interface for the jqXHR object
*/
interface JQueryXHR extends XMLHttpRequest, JQueryPromise<any> {
/**
* The .overrideMimeType() method may be used in the beforeSend() callback function, for example, to modify the response content-type header. As of jQuery 1.5.1, the jqXHR object also contains the overrid... | borget/Skyguardian-WialonApp-UnitOnMap | WebContent/scripts/typings/jquery.d.ts | TypeScript |
InterfaceDeclaration | /**
* Interface for the JQuery callback
*/
interface JQueryCallback {
/**
* Add a callback or a collection of callbacks to a callback list.
*
* @param callbacks A function, or array of functions, that are to be added to the callback list.
*/
add(callbacks: Function): JQueryCallback;
/**
... | borget/Skyguardian-WialonApp-UnitOnMap | WebContent/scripts/typings/jquery.d.ts | TypeScript |
InterfaceDeclaration | /**
* Allows jQuery Promises to interop with non-jQuery promises
*/
interface JQueryGenericPromise<T> {
/**
* Add handlers to be called when the Deferred object is resolved, rejected, or still in progress.
*
* @param doneFilter A function that is called when the Deferred is resolved.
* @param failFi... | borget/Skyguardian-WialonApp-UnitOnMap | WebContent/scripts/typings/jquery.d.ts | TypeScript |
InterfaceDeclaration | /**
* Interface for the JQuery promise/deferred callbacks
*/
interface JQueryPromiseCallback<T> {
(value?: T, ...args: any[]): void;
} | borget/Skyguardian-WialonApp-UnitOnMap | WebContent/scripts/typings/jquery.d.ts | TypeScript |
InterfaceDeclaration |
interface JQueryPromiseOperator<T, R> {
(callback: JQueryPromiseCallback<T>, ...callbacks: JQueryPromiseCallback<T>[]): JQueryPromise<R>;
(callback: JQueryPromiseCallback<T>[], ...callbacks: JQueryPromiseCallback<T>[]): JQueryPromise<R>;
} | borget/Skyguardian-WialonApp-UnitOnMap | WebContent/scripts/typings/jquery.d.ts | TypeScript |
InterfaceDeclaration | /**
* Interface for the JQuery promise, part of callbacks
*/
interface JQueryPromise<T> {
/**
* Add handlers to be called when the Deferred object is either resolved or rejected.
*
* @param alwaysCallbacks1 A function, or array of functions, that is called when the Deferred is resolved or rejected.
... | borget/Skyguardian-WialonApp-UnitOnMap | WebContent/scripts/typings/jquery.d.ts | TypeScript |
InterfaceDeclaration | /**
* Interface for the JQuery deferred, part of callbacks
*/
interface JQueryDeferred<T> extends JQueryPromise<T> {
/**
* Add handlers to be called when the Deferred object is either resolved or rejected.
*
* @param alwaysCallbacks1 A function, or array of functions, that is called when the Deferred is... | borget/Skyguardian-WialonApp-UnitOnMap | WebContent/scripts/typings/jquery.d.ts | TypeScript |
InterfaceDeclaration | /**
* Interface of the JQuery extension of the W3C event object
*/
interface BaseJQueryEventObject extends Event {
data: any;
delegateTarget: Element;
isDefaultPrevented(): boolean;
isImmediatePropagationStopped(): boolean;
isPropagationStopped(): boolean;
namespace: string;
originalEvent: E... | borget/Skyguardian-WialonApp-UnitOnMap | WebContent/scripts/typings/jquery.d.ts | TypeScript |
InterfaceDeclaration |
interface JQueryEventObject extends BaseJQueryEventObject, JQueryInputEventObject, JQueryMouseEventObject, JQueryKeyEventObject {
} | borget/Skyguardian-WialonApp-UnitOnMap | WebContent/scripts/typings/jquery.d.ts | TypeScript |
InterfaceDeclaration | /*
Collection of properties of the current browser
*/
interface JQuerySupport {
ajax?: boolean;
boxModel?: boolean;
changeBubbles?: boolean;
checkClone?: boolean;
checkOn?: boolean;
cors?: boolean;
cssFloat?: boolean;
hrefNormalized?: boolean;
htmlSerialize?: boolean;
leadingWhit... | borget/Skyguardian-WialonApp-UnitOnMap | WebContent/scripts/typings/jquery.d.ts | TypeScript |
InterfaceDeclaration |
interface JQueryParam {
/**
* Create a serialized representation of an array or object, suitable for use in a URL query string or Ajax request.
*
* @param obj An array or object to serialize.
*/
(obj: any): string;
/**
* Create a serialized representation of an array or object, suitable... | borget/Skyguardian-WialonApp-UnitOnMap | WebContent/scripts/typings/jquery.d.ts | TypeScript |
InterfaceDeclaration | /**
* The interface used to construct jQuery events (with $.Event). It is
* defined separately instead of inline in JQueryStatic to allow
* overriding the construction function with specific strings
* returning specific event objects.
*/
interface JQueryEventConstructor {
(name: string, eventProperties?: any): JQue... | borget/Skyguardian-WialonApp-UnitOnMap | WebContent/scripts/typings/jquery.d.ts | TypeScript |
InterfaceDeclaration | /**
* The interface used to specify coordinates.
*/
interface JQueryCoordinates {
left: number;
top: number;
} | borget/Skyguardian-WialonApp-UnitOnMap | WebContent/scripts/typings/jquery.d.ts | TypeScript |
InterfaceDeclaration |
interface JQueryAnimationOptions {
/**
* A string or number determining how long the animation will run.
*/
duration?: any;
/**
* A string indicating which easing function to use for the transition.
*/
easing?: string;
/**
* A function to call once the animation is complete.
... | borget/Skyguardian-WialonApp-UnitOnMap | WebContent/scripts/typings/jquery.d.ts | TypeScript |
ArrowFunction |
({
name,
type,
label,
validate,
readOnly,
isEdited,
...otherProps
}) => (
<Field
name={name} | dsp-testing/fp-frontend | packages/form/src/InputField.tsx | TypeScript |
InterfaceDeclaration |
interface InputFieldProps {
readOnly?: boolean;
isEdited?: boolean;
type?: string;
label?: LabelType;
} | dsp-testing/fp-frontend | packages/form/src/InputField.tsx | TypeScript |
ArrowFunction |
() => ({
backgroundColor: '#ffffff',
}) | ObjectPress/object-press | src/components/Wrapper.style.tsx | TypeScript |
ArrowFunction |
() => ({
display: 'flex',
justifyContent: 'space-between',
alignItems: 'center',
flex: '0 1 auto',
flexDirection: 'row',
flexWrap: 'wrap',
padding: '40px',
/* margin-bottom: 40px, */
backgroundColor: '#ffffff',
'@media only screen and (max-width: 990px)': {
padding: '20px',
},
}) | ObjectPress/object-press | src/components/Wrapper.style.tsx | TypeScript |
ArrowFunction |
({ $theme }) => ({
...$theme.typography.fontBold18,
color: $theme.colors.textDark,
margin: 0,
}) | ObjectPress/object-press | src/components/Wrapper.style.tsx | TypeScript |
ArrowFunction |
({ $theme }) => ({
display: 'flex',
justifyContent: 'space-between',
paddingTop: '20px',
}) | ObjectPress/object-press | src/components/Wrapper.style.tsx | TypeScript |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.