type
stringclasses 7
values | content
stringlengths 4
9.55k
| repo
stringlengths 7
96
| path
stringlengths 4
178
| language
stringclasses 1
value |
---|---|---|---|---|
InterfaceDeclaration |
export interface MUIDataTableViewCol {
columns: any[];
object: object;
onColumnUpdate: (...args: any) => any;
classes?: object;
} | JaceyPenny/DefinitelyTyped | types/mui-datatables/index.d.ts | TypeScript |
TypeAliasDeclaration |
export type MUIDataTableColumnDef = string | MUIDataTableColumn; | JaceyPenny/DefinitelyTyped | types/mui-datatables/index.d.ts | TypeScript |
ArrowFunction |
({ dependents }: IDependentListProps) => (
<div className={css.component}>
<Typography variant | crisu83/dpkg-ui | src/package/DependentList.tsx | TypeScript |
ArrowFunction |
name => (
<li className={css.packageName} | crisu83/dpkg-ui | src/package/DependentList.tsx | TypeScript |
InterfaceDeclaration |
interface IDependentListProps {
dependents: string[];
} | crisu83/dpkg-ui | src/package/DependentList.tsx | TypeScript |
FunctionDeclaration |
function | Library-Dev/BLibraryTest | src/qt/locale/blibrary_de.ts | TypeScript |
ArrowFunction |
(Standard: | Library-Dev/BLibraryTest | src/qt/locale/blibrary_de.ts | TypeScript |
FunctionDeclaration |
function waitForElement(selector: any /** TODO #9100 */) {
var EC = (<any>protractor).ExpectedConditions;
// Waits for the element with id 'abc' to be present on the dom.
browser.wait(EC.presenceOf($(selector)), 20000);
} | Hikariii/angular | modules/playground/e2e_test/routing/routing_spec.ts | TypeScript |
ArrowFunction |
() => {
afterEach(verifyNoBrowserErrors);
describe('index view', () => {
var URL = 'all/playground/src/routing/';
it('should list out the current collection of items', () => {
browser.get(URL);
waitForElement('.inbox-item-record');
expect(element.all(by.css('.inbox-item-record')).count()).toEqual(200);
});
});
} | Hikariii/angular | modules/playground/e2e_test/routing/routing_spec.ts | TypeScript |
ArrowFunction |
() => {
var URL = 'all/playground/src/routing/';
it('should list out the current collection of items', () => {
browser.get(URL);
waitForElement('.inbox-item-record');
expect(element.all(by.css('.inbox-item-record')).count()).toEqual(200);
});
} | Hikariii/angular | modules/playground/e2e_test/routing/routing_spec.ts | TypeScript |
ArrowFunction |
() => {
browser.get(URL);
waitForElement('.inbox-item-record');
expect(element.all(by.css('.inbox-item-record')).count()).toEqual(200);
} | Hikariii/angular | modules/playground/e2e_test/routing/routing_spec.ts | TypeScript |
ArrowFunction |
() => {
it('Delay 1',
Callbackify(
InSeries(
() => [ 1, 2, 3 ],
Delay(100),
Assert(
([ a, b, c ]) => (a === 1 && b === 2 && c === 3)
)
)
)
);
it('Delay 2',
Callbackify(
InSeries(
() => [ 1, 2, 3 ],
Delay(),
Assert(
([ a, b, c ]) => (a === 1 && b === 2 && c === 3)
)
)
)
);
} | somesocks/async-patterns | src/Delay.mocha.tests.ts | TypeScript |
ArrowFunction |
() => [ 1, 2, 3 ] | somesocks/async-patterns | src/Delay.mocha.tests.ts | TypeScript |
ArrowFunction |
([ a, b, c ]) => (a === 1 && b === 2 && c === 3) | somesocks/async-patterns | src/Delay.mocha.tests.ts | TypeScript |
ArrowFunction |
() => {
const fn = savedVisualization().fn;
const args = {
id: 'some-id',
timerange: null,
colors: null,
hideLegend: null,
title: null,
};
it('accepts null context', () => {
const expression = fn(null, args, {} as any);
expect(expression.input.filters).toEqual([]);
});
it('accepts filter context', () => {
const expression = fn(filterContext, args, {} as any);
const embeddableFilters = getQueryFilters(filterContext.and);
expect(expression.input.filters).toEqual(embeddableFilters);
});
it('accepts an empty title when title is disabled', () => {
const expression = fn(null, { ...args, title: '' }, {} as any);
expect(expression.input.title).toEqual('');
});
} | AlexanderWert/kibana | x-pack/plugins/canvas/canvas_plugin_src/functions/external/saved_visualization.test.ts | TypeScript |
ArrowFunction |
() => {
const expression = fn(null, args, {} as any);
expect(expression.input.filters).toEqual([]);
} | AlexanderWert/kibana | x-pack/plugins/canvas/canvas_plugin_src/functions/external/saved_visualization.test.ts | TypeScript |
ArrowFunction |
() => {
const expression = fn(filterContext, args, {} as any);
const embeddableFilters = getQueryFilters(filterContext.and);
expect(expression.input.filters).toEqual(embeddableFilters);
} | AlexanderWert/kibana | x-pack/plugins/canvas/canvas_plugin_src/functions/external/saved_visualization.test.ts | TypeScript |
ArrowFunction |
() => {
const expression = fn(null, { ...args, title: '' }, {} as any);
expect(expression.input.title).toEqual('');
} | AlexanderWert/kibana | x-pack/plugins/canvas/canvas_plugin_src/functions/external/saved_visualization.test.ts | TypeScript |
ArrowFunction |
({
children,
padding = 'space60',
paddingBottom,
paddingLeft,
paddingRight,
paddingTop,
...props
}) => {
return (
<Box
{...safelySpreadBoxProps(props)}
as="article"
borderWidth="borderWidth20"
borderColor="colorBorderLight"
borderStyle="solid"
borderRadius="borderRadius20"
padding={padding}
paddingBottom={paddingBottom}
paddingLeft={paddingLeft}
paddingRight={paddingRight}
paddingTop={paddingTop}
backgroundColor="colorBackgroundBody"
>
{children}
</Box> | ctecks/paste | packages/paste-core/components/card/src/index.tsx | TypeScript |
InterfaceDeclaration |
export interface CardProps extends React.HTMLAttributes<''>, PaddingProps {} | ctecks/paste | packages/paste-core/components/card/src/index.tsx | TypeScript |
TypeAliasDeclaration |
export type Theme = typeof theme | S4n60w3n/bomponents | themes/index.ts | TypeScript |
ArrowFunction |
(locale) => {
const splitedLocale = locale.split('-');
return splitedLocale.map((value, index) => {
const localeGenerator = [];
for (let i = 0; i <= index; i++) {
localeGenerator.push(splitedLocale[i]);
}
return localeGenerator.join('-');
}).reverse();
} | fabulator/locales-detector | src/transformers/FallbacksTransformer.ts | TypeScript |
ArrowFunction |
(value, index) => {
const localeGenerator = [];
for (let i = 0; i <= index; i++) {
localeGenerator.push(splitedLocale[i]);
}
return localeGenerator.join('-');
} | fabulator/locales-detector | src/transformers/FallbacksTransformer.ts | TypeScript |
ArrowFunction |
(a, b) => a.concat(b) | fabulator/locales-detector | src/transformers/FallbacksTransformer.ts | TypeScript |
ClassDeclaration | /**
* This transformers create fallbacks from complex locales to simpliest.
* 'en-US-east' => ['en-US-east', 'en-US', 'en']
* 'es-ES' => ['es-ES', 'es']
*/
export default class FallbacksTransformer extends Transformer {
/**
* Add fallbacks to locales. Locales should be in IETF language tag format.
*
* @param {Array<string>} locales - list of locales
* @returns {Array<string>} locales with fallbacks
*/
public transform(locales: string[]): string[] {
return locales.map((locale) => {
const splitedLocale = locale.split('-');
return splitedLocale.map((value, index) => {
const localeGenerator = [];
for (let i = 0; i <= index; i++) {
localeGenerator.push(splitedLocale[i]);
}
return localeGenerator.join('-');
}).reverse();
}).reduce((a, b) => a.concat(b), []);
}
} | fabulator/locales-detector | src/transformers/FallbacksTransformer.ts | TypeScript |
MethodDeclaration | /**
* Add fallbacks to locales. Locales should be in IETF language tag format.
*
* @param {Array<string>} locales - list of locales
* @returns {Array<string>} locales with fallbacks
*/
public transform(locales: string[]): string[] {
return locales.map((locale) => {
const splitedLocale = locale.split('-');
return splitedLocale.map((value, index) => {
const localeGenerator = [];
for (let i = 0; i <= index; i++) {
localeGenerator.push(splitedLocale[i]);
}
return localeGenerator.join('-');
}).reverse();
}).reduce((a, b) => a.concat(b), []);
} | fabulator/locales-detector | src/transformers/FallbacksTransformer.ts | TypeScript |
ArrowFunction |
() => {
const fetchData = async () => {
const response = await fetch(
'https://gw.alipayobjects.com/os/basement_prod/893d1d5f-11d9-45f3-8322-ee9140d288ae.json',
);
const data = await response.json();
setData(data);
};
fetchData();
} | antvis/L7 | examples/react/layer/demo/Point_image.tsx | TypeScript |
ArrowFunction |
async () => {
const response = await fetch(
'https://gw.alipayobjects.com/os/basement_prod/893d1d5f-11d9-45f3-8322-ee9140d288ae.json',
);
const data = await response.json();
setData(data);
} | antvis/L7 | examples/react/layer/demo/Point_image.tsx | TypeScript |
EnumDeclaration |
export enum Elements {
Fire,
Water
} | Nebula234/RPG-JS | tests/unit-tests/specs/fixtures/elements.ts | TypeScript |
ArrowFunction |
(id: string) =>
api.get<any>(`/pms/product-category/${id}`) | kvery/k-mall-admin | src/api/category.ts | TypeScript |
ArrowFunction |
(parentId: number, params: any) =>
api.get<any, any>(`/pms/product-category/list/${parentId}`, { params }) | kvery/k-mall-admin | src/api/category.ts | TypeScript |
ArrowFunction |
(data: any) =>
api.post<any>('/pms/product-category', data) | kvery/k-mall-admin | src/api/category.ts | TypeScript |
ArrowFunction |
(id: string, data: any) =>
api.put<any>(`/pms/product-category/${id}`, data) | kvery/k-mall-admin | src/api/category.ts | TypeScript |
ArrowFunction |
(ids: Array<string>) =>
api.delete<any>('/pms/product-category', { data: { ids } }) | kvery/k-mall-admin | src/api/category.ts | TypeScript |
ArrowFunction |
(data: any) =>
api.put<any>('/pms/product-category/show-status', data) | kvery/k-mall-admin | src/api/category.ts | TypeScript |
ArrowFunction |
(data: any) =>
api.put<any>('/pms/product-category/nav-status', data) | kvery/k-mall-admin | src/api/category.ts | TypeScript |
ArrowFunction |
() =>
api.get<any, any>('/pms/product-category/list/with-children') | kvery/k-mall-admin | src/api/category.ts | TypeScript |
ArrowFunction |
() => [Course] | marcosvcorsi/nestjs-students | src/models/student.model.ts | TypeScript |
ClassDeclaration |
@ObjectType({ description: 'student' })
export class Student {
@Field(() => ID)
id: string;
@Field()
name: string;
@Field()
email: string;
@Field()
createdAt: Date;
@Field()
updatedAt: Date;
@Field(() => [Course], { nullable: true })
courses?: Course[];
} | marcosvcorsi/nestjs-students | src/models/student.model.ts | TypeScript |
ClassDeclaration |
@NgModule({
imports: [RouterModule.forChild(routes)],
exports: [RouterModule]
})
export class DashboardRoutingModule {} | 24wings/amis-alain | src/app/routes/dashboard/dashboard-routing.module.ts | TypeScript |
ClassDeclaration |
export class StopInstanceCommand extends $Command<
StopInstanceCommandInput,
StopInstanceCommandOutput,
LightsailClientResolvedConfig
> {
// Start section: command_properties
// End section: command_properties
constructor(readonly input: StopInstanceCommandInput) {
// Start section: command_constructor
super();
// End section: command_constructor
}
resolveMiddleware(
clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>,
configuration: LightsailClientResolvedConfig,
options?: __HttpHandlerOptions
): Handler<StopInstanceCommandInput, StopInstanceCommandOutput> {
this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
const stack = clientStack.concat(this.middlewareStack);
const handlerExecutionContext: HandlerExecutionContext = {
logger: {} as any,
};
const { requestHandler } = configuration;
return stack.resolve(
(request: FinalizeHandlerArguments<any>) =>
requestHandler.handle(request.request as __HttpRequest, options || {}),
handlerExecutionContext
);
}
private serialize(input: StopInstanceCommandInput, context: __SerdeContext): Promise<__HttpRequest> {
return serializeAws_json1_1StopInstanceCommand(input, context);
}
private deserialize(output: __HttpResponse, context: __SerdeContext): Promise<StopInstanceCommandOutput> {
return deserializeAws_json1_1StopInstanceCommand(output, context);
}
// Start section: command_body_extra
// End section: command_body_extra
} | blakeembrey/aws-sdk-js-v3 | clients/client-lightsail/commands/StopInstanceCommand.ts | TypeScript |
TypeAliasDeclaration |
export type StopInstanceCommandInput = StopInstanceRequest; | blakeembrey/aws-sdk-js-v3 | clients/client-lightsail/commands/StopInstanceCommand.ts | TypeScript |
TypeAliasDeclaration |
export type StopInstanceCommandOutput = StopInstanceResult & __MetadataBearer; | blakeembrey/aws-sdk-js-v3 | clients/client-lightsail/commands/StopInstanceCommand.ts | TypeScript |
MethodDeclaration |
resolveMiddleware(
clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>,
configuration: LightsailClientResolvedConfig,
options?: __HttpHandlerOptions
): Handler<StopInstanceCommandInput, StopInstanceCommandOutput> {
this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
const stack = clientStack.concat(this.middlewareStack);
const handlerExecutionContext: HandlerExecutionContext = {
logger: {} as any,
};
const { requestHandler } = configuration;
return stack.resolve(
(request: FinalizeHandlerArguments<any>) =>
requestHandler.handle(request.request as __HttpRequest, options || {}),
handlerExecutionContext
);
} | blakeembrey/aws-sdk-js-v3 | clients/client-lightsail/commands/StopInstanceCommand.ts | TypeScript |
MethodDeclaration |
private serialize(input: StopInstanceCommandInput, context: __SerdeContext): Promise<__HttpRequest> {
return serializeAws_json1_1StopInstanceCommand(input, context);
} | blakeembrey/aws-sdk-js-v3 | clients/client-lightsail/commands/StopInstanceCommand.ts | TypeScript |
MethodDeclaration |
private deserialize(output: __HttpResponse, context: __SerdeContext): Promise<StopInstanceCommandOutput> {
return deserializeAws_json1_1StopInstanceCommand(output, context);
} | blakeembrey/aws-sdk-js-v3 | clients/client-lightsail/commands/StopInstanceCommand.ts | TypeScript |
ArrowFunction |
({
name,
withTime,
maxDate,
minDate,
defaultValue,
...datePickerProps
}) => {
const { t } = useTranslation('form');
const Component = withTime ? DateTimePicker : DatePicker;
const {
control,
formState: { errors },
} = useFormContext();
const {
// eslint-disable-next-line @typescript-eslint/no-unused-vars
field: { ref: _ref, value, ...rest },
} = useController({
name,
control,
defaultValue: defaultValue || '',
});
const error = _.get(errors, name);
return (
<Component
inputFormat={withTime ? 'dd/MM/yyyy HH:mm' : 'dd/MM/yyyy'}
ampm={false}
okText={t('form:date_picker.ok')}
cancelText={t('form:date_picker.cancel')}
clearText={t('form:date_picker.clear')}
todayText={t('form:date_picker.today')}
maxDate={maxDate}
minDate={minDate}
renderInput={(props): ReactElement => (
<TextField
{...props}
{...datePickerProps}
error={Boolean(error)}
helperText={<ValidationErrorMessage error={error?.message} />} | mbertoneri/pellet-logger-admin | src/components/Form/LocalizedDatePicker/LocalizedDatePicker.tsx | TypeScript |
ArrowFunction |
ReactElement => (
<TextField
{...props} | mbertoneri/pellet-logger-admin | src/components/Form/LocalizedDatePicker/LocalizedDatePicker.tsx | TypeScript |
TypeAliasDeclaration |
type Props = Omit<
Pick<DateTimePickerProps & DatePickerProps, 'maxDate' | 'minDate'> &
TextFieldProps & {
name: string;
withTime?: boolean;
},
'onChange' | 'value'
>; | mbertoneri/pellet-logger-admin | src/components/Form/LocalizedDatePicker/LocalizedDatePicker.tsx | TypeScript |
MethodDeclaration |
t('form:date_picker.ok') | mbertoneri/pellet-logger-admin | src/components/Form/LocalizedDatePicker/LocalizedDatePicker.tsx | TypeScript |
MethodDeclaration |
t('form:date_picker.cancel') | mbertoneri/pellet-logger-admin | src/components/Form/LocalizedDatePicker/LocalizedDatePicker.tsx | TypeScript |
MethodDeclaration |
t('form:date_picker.clear') | mbertoneri/pellet-logger-admin | src/components/Form/LocalizedDatePicker/LocalizedDatePicker.tsx | TypeScript |
MethodDeclaration |
t('form:date_picker.today') | mbertoneri/pellet-logger-admin | src/components/Form/LocalizedDatePicker/LocalizedDatePicker.tsx | TypeScript |
MethodDeclaration |
Boolean(error) | mbertoneri/pellet-logger-admin | src/components/Form/LocalizedDatePicker/LocalizedDatePicker.tsx | TypeScript |
ClassDeclaration |
@Controller('user')
export class UserController {
constructor(private readonly userService: UserService) { }
@Post()
async create(@Body() body: CreateUserDto) {
try {
return this.userService.create(body);
}
catch (err) {
throw new Error(err)
}
}
@Get()
async get(): Promise<User[]> {
return this.userService.findAll()
}
} | Oluwafayokemi/flaming-api | src/user/user.controller.ts | TypeScript |
MethodDeclaration |
@Post()
async create(@Body() body: CreateUserDto) {
try {
return this.userService.create(body);
}
catch (err) {
throw new Error(err)
}
} | Oluwafayokemi/flaming-api | src/user/user.controller.ts | TypeScript |
MethodDeclaration |
@Get()
async get(): Promise<User[]> {
return this.userService.findAll()
} | Oluwafayokemi/flaming-api | src/user/user.controller.ts | TypeScript |
ArrowFunction |
() => {
let service: ErrorService;
beforeEach(() => {
TestBed.configureTestingModule({
imports: [E2EImportsModule]
});
service = TestBed.inject(ErrorService);
});
it(`should be created`, () => {
expect(service).toBeTruthy();
});
} | GabrielInTheWorld/openslides-client | client/src/app/core/ui-services/error.service.spec.ts | TypeScript |
ArrowFunction |
() => {
TestBed.configureTestingModule({
imports: [E2EImportsModule]
});
service = TestBed.inject(ErrorService);
} | GabrielInTheWorld/openslides-client | client/src/app/core/ui-services/error.service.spec.ts | TypeScript |
ArrowFunction |
() => {
expect(service).toBeTruthy();
} | GabrielInTheWorld/openslides-client | client/src/app/core/ui-services/error.service.spec.ts | TypeScript |
InterfaceDeclaration |
interface LoDashStatic {
/**
* Creates a lodash object which wraps the given value to enable intuitive method chaining.
*
* In addition to Lo-Dash methods, wrappers also have the following Array methods:
* concat, join, pop, push, reverse, shift, slice, sort, splice, and unshift
*
* Chaining is supported in custom builds as long as the value method is implicitly or
* explicitly included in the build.
*
* The chainable wrapper functions are:
* after, assign, bind, bindAll, bindKey, chain, chunk, compact, compose, concat, countBy,
* createCallback, curry, debounce, defaults, defer, delay, difference, filter, flatten,
* forEach, forEachRight, forIn, forInRight, forOwn, forOwnRight, functions, groupBy,
* keyBy, initial, intersection, invert, invoke, keys, map, max, memoize, merge, min,
* object, omit, once, pairs, partial, partialRight, pick, pluck, pull, push, range, reject,
* remove, rest, reverse, sample, shuffle, slice, sort, sortBy, splice, tap, throttle, times,
* toArray, transform, union, uniq, unset, unshift, unzip, values, where, without, wrap, and zip
*
* The non-chainable wrapper functions are:
* clone, cloneDeep, contains, escape, every, find, findIndex, findKey, findLast,
* findLastIndex, findLastKey, has, identity, indexOf, isArguments, isArray, isBoolean,
* isDate, isElement, isEmpty, isEqual, isFinite, isFunction, isNaN, isNull, isNumber,
* isObject, isPlainObject, isRegExp, isString, isUndefined, join, lastIndexOf, mixin,
* noConflict, parseInt, pop, random, reduce, reduceRight, result, shift, size, some,
* sortedIndex, runInContext, template, unescape, uniqueId, and value
*
* The wrapper functions first and last return wrapped values when n is provided, otherwise
* they return unwrapped values.
*
* Explicit chaining can be enabled by using the _.chain method.
**/
(value: number): LoDashImplicitWrapper<number>;
(value: string): LoDashImplicitStringWrapper;
(value: boolean): LoDashImplicitWrapper<boolean>;
(value: Array<number>): LoDashImplicitNumberArrayWrapper;
<T>(value: Array<T>): LoDashImplicitArrayWrapper<T>;
<T extends {}>(value: T): LoDashImplicitObjectWrapper<T>;
(value: any): LoDashImplicitWrapper<any>;
/**
* The semantic version number.
**/
VERSION: string;
/**
* By default, the template delimiters used by Lo-Dash are similar to those in embedded Ruby
* (ERB). Change the following template settings to use alternative delimiters.
**/
templateSettings: TemplateSettings;
} | CarlCui/DefinitelyTyped | lodash/lodash.d.ts | TypeScript |
InterfaceDeclaration | /**
* By default, the template delimiters used by Lo-Dash are similar to those in embedded Ruby
* (ERB). Change the following template settings to use alternative delimiters.
**/
interface TemplateSettings {
/**
* The "escape" delimiter.
**/
escape?: RegExp;
/**
* The "evaluate" delimiter.
**/
evaluate?: RegExp;
/**
* An object to import into the template as local variables.
**/
imports?: Dictionary<any>;
/**
* The "interpolate" delimiter.
**/
interpolate?: RegExp;
/**
* Used to reference the data object in the template text.
**/
variable?: string;
} | CarlCui/DefinitelyTyped | lodash/lodash.d.ts | TypeScript |
InterfaceDeclaration | /**
* Creates a cache object to store key/value pairs.
*/
interface MapCache {
/**
* Removes `key` and its value from the cache.
* @param key The key of the value to remove.
* @return Returns `true` if the entry was removed successfully, else `false`.
*/
delete(key: string): boolean;
/**
* Gets the cached value for `key`.
* @param key The key of the value to get.
* @return Returns the cached value.
*/
get(key: string): any;
/**
* Checks if a cached value for `key` exists.
* @param key The key of the entry to check.
* @return Returns `true` if an entry for `key` exists, else `false`.
*/
has(key: string): boolean;
/**
* Sets `value` to `key` of the cache.
* @param key The key of the value to cache.
* @param value The value to cache.
* @return Returns the cache object.
*/
set(key: string, value: any): _.Dictionary<any>;
} | CarlCui/DefinitelyTyped | lodash/lodash.d.ts | TypeScript |
InterfaceDeclaration |
interface LoDashWrapperBase<T, TWrapper> { } | CarlCui/DefinitelyTyped | lodash/lodash.d.ts | TypeScript |
InterfaceDeclaration |
interface LoDashImplicitWrapperBase<T, TWrapper> extends LoDashWrapperBase<T, TWrapper> { } | CarlCui/DefinitelyTyped | lodash/lodash.d.ts | TypeScript |
InterfaceDeclaration |
interface LoDashExplicitWrapperBase<T, TWrapper> extends LoDashWrapperBase<T, TWrapper> { } | CarlCui/DefinitelyTyped | lodash/lodash.d.ts | TypeScript |
InterfaceDeclaration |
interface LoDashImplicitWrapper<T> extends LoDashImplicitWrapperBase<T, LoDashImplicitWrapper<T>> { } | CarlCui/DefinitelyTyped | lodash/lodash.d.ts | TypeScript |
InterfaceDeclaration |
interface LoDashExplicitWrapper<T> extends LoDashExplicitWrapperBase<T, LoDashExplicitWrapper<T>> { } | CarlCui/DefinitelyTyped | lodash/lodash.d.ts | TypeScript |
InterfaceDeclaration |
interface LoDashImplicitStringWrapper extends LoDashImplicitWrapper<string> { } | CarlCui/DefinitelyTyped | lodash/lodash.d.ts | TypeScript |
InterfaceDeclaration |
interface LoDashExplicitStringWrapper extends LoDashExplicitWrapper<string> { } | CarlCui/DefinitelyTyped | lodash/lodash.d.ts | TypeScript |
InterfaceDeclaration |
interface LoDashImplicitObjectWrapper<T> extends LoDashImplicitWrapperBase<T, LoDashImplicitObjectWrapper<T>> { } | CarlCui/DefinitelyTyped | lodash/lodash.d.ts | TypeScript |
InterfaceDeclaration |
interface LoDashExplicitObjectWrapper<T> extends LoDashExplicitWrapperBase<T, LoDashExplicitObjectWrapper<T>> { } | CarlCui/DefinitelyTyped | lodash/lodash.d.ts | TypeScript |
InterfaceDeclaration |
interface LoDashImplicitArrayWrapper<T> extends LoDashImplicitWrapperBase<T[], LoDashImplicitArrayWrapper<T>> {
pop(): T;
push(...items: T[]): LoDashImplicitArrayWrapper<T>;
shift(): T;
sort(compareFn?: (a: T, b: T) => number): LoDashImplicitArrayWrapper<T>;
splice(start: number): LoDashImplicitArrayWrapper<T>;
splice(start: number, deleteCount: number, ...items: any[]): LoDashImplicitArrayWrapper<T>;
unshift(...items: T[]): LoDashImplicitArrayWrapper<T>;
} | CarlCui/DefinitelyTyped | lodash/lodash.d.ts | TypeScript |
InterfaceDeclaration |
interface LoDashExplicitArrayWrapper<T> extends LoDashExplicitWrapperBase<T[], LoDashExplicitArrayWrapper<T>> { } | CarlCui/DefinitelyTyped | lodash/lodash.d.ts | TypeScript |
InterfaceDeclaration |
interface LoDashImplicitNumberArrayWrapper extends LoDashImplicitArrayWrapper<number> { } | CarlCui/DefinitelyTyped | lodash/lodash.d.ts | TypeScript |
InterfaceDeclaration |
interface LoDashExplicitNumberArrayWrapper extends LoDashExplicitArrayWrapper<number> { } | CarlCui/DefinitelyTyped | lodash/lodash.d.ts | TypeScript |
InterfaceDeclaration | /*********
* Array *
*********/
//_.chunk
interface LoDashStatic {
/**
* Creates an array of elements split into groups the length of size. If collection can’t be split evenly, the
* final chunk will be the remaining elements.
*
* @param array The array to process.
* @param size The length of each chunk.
* @return Returns the new array containing chunks.
*/
chunk<T>(
array: List<T>,
size?: number
): T[][];
} | CarlCui/DefinitelyTyped | lodash/lodash.d.ts | TypeScript |
InterfaceDeclaration |
interface LoDashImplicitArrayWrapper<T> {
/**
* @see _.chunk
*/
chunk(size?: number): LoDashImplicitArrayWrapper<T[]>;
} | CarlCui/DefinitelyTyped | lodash/lodash.d.ts | TypeScript |
InterfaceDeclaration |
interface LoDashImplicitObjectWrapper<T> {
/**
* @see _.chunk
*/
chunk<TResult>(size?: number): LoDashImplicitArrayWrapper<TResult[]>;
} | CarlCui/DefinitelyTyped | lodash/lodash.d.ts | TypeScript |
InterfaceDeclaration |
interface LoDashExplicitArrayWrapper<T> {
/**
* @see _.chunk
*/
chunk(size?: number): LoDashExplicitArrayWrapper<T[]>;
} | CarlCui/DefinitelyTyped | lodash/lodash.d.ts | TypeScript |
InterfaceDeclaration |
interface LoDashExplicitObjectWrapper<T> {
/**
* @see _.chunk
*/
chunk<TResult>(size?: number): LoDashExplicitArrayWrapper<TResult[]>;
} | CarlCui/DefinitelyTyped | lodash/lodash.d.ts | TypeScript |
InterfaceDeclaration | //_.compact
interface LoDashStatic {
/**
* Creates an array with all falsey values removed. The values false, null, 0, "", undefined, and NaN are
* falsey.
*
* @param array The array to compact.
* @return (Array) Returns the new array of filtered values.
*/
compact<T>(array?: List<T>): T[];
} | CarlCui/DefinitelyTyped | lodash/lodash.d.ts | TypeScript |
InterfaceDeclaration |
interface LoDashImplicitArrayWrapper<T> {
/**
* @see _.compact
*/
compact(): LoDashImplicitArrayWrapper<T>;
} | CarlCui/DefinitelyTyped | lodash/lodash.d.ts | TypeScript |
InterfaceDeclaration |
interface LoDashImplicitObjectWrapper<T> {
/**
* @see _.compact
*/
compact<TResult>(): LoDashImplicitArrayWrapper<TResult>;
} | CarlCui/DefinitelyTyped | lodash/lodash.d.ts | TypeScript |
InterfaceDeclaration |
interface LoDashExplicitArrayWrapper<T> {
/**
* @see _.compact
*/
compact(): LoDashExplicitArrayWrapper<T>;
} | CarlCui/DefinitelyTyped | lodash/lodash.d.ts | TypeScript |
InterfaceDeclaration |
interface LoDashExplicitObjectWrapper<T> {
/**
* @see _.compact
*/
compact<TResult>(): LoDashExplicitArrayWrapper<TResult>;
} | CarlCui/DefinitelyTyped | lodash/lodash.d.ts | TypeScript |
InterfaceDeclaration | //_.concat DUMMY
interface LoDashStatic {
/**
* Creates a new array concatenating `array` with any additional arrays
* and/or values.
*
* @static
* @memberOf _
* @category Array
* @param {Array} array The array to concatenate.
* @param {...*} [values] The values to concatenate.
* @returns {Array} Returns the new concatenated array.
* @example
*
* var array = [1];
* var other = _.concat(array, 2, [3], [[4]]);
*
* console.log(other);
* // => [1, 2, 3, [4]]
*
* console.log(array);
* // => [1]
*/
concat<T>(...values: (T[]|List<T>)[]) : T[];
} | CarlCui/DefinitelyTyped | lodash/lodash.d.ts | TypeScript |
InterfaceDeclaration | //_.difference
interface LoDashStatic {
/**
* Creates an array of unique array values not included in the other provided arrays using SameValueZero for
* equality comparisons.
*
* @param array The array to inspect.
* @param values The arrays of values to exclude.
* @return Returns the new array of filtered values.
*/
difference<T>(
array: T[]|List<T>,
...values: Array<T[]|List<T>>
): T[];
} | CarlCui/DefinitelyTyped | lodash/lodash.d.ts | TypeScript |
InterfaceDeclaration |
interface LoDashImplicitArrayWrapper<T> {
/**
* @see _.difference
*/
difference(...values: (T[]|List<T>)[]): LoDashImplicitArrayWrapper<T>;
} | CarlCui/DefinitelyTyped | lodash/lodash.d.ts | TypeScript |
InterfaceDeclaration |
interface LoDashImplicitObjectWrapper<T> {
/**
* @see _.difference
*/
difference<TValue>(...values: (TValue[]|List<TValue>)[]): LoDashImplicitArrayWrapper<TValue>;
} | CarlCui/DefinitelyTyped | lodash/lodash.d.ts | TypeScript |
InterfaceDeclaration |
interface LoDashExplicitArrayWrapper<T> {
/**
* @see _.difference
*/
difference(...values: (T[]|List<T>)[]): LoDashExplicitArrayWrapper<T>;
} | CarlCui/DefinitelyTyped | lodash/lodash.d.ts | TypeScript |
InterfaceDeclaration |
interface LoDashExplicitObjectWrapper<T> {
/**
* @see _.difference
*/
difference<TValue>(...values: (TValue[]|List<TValue>)[]): LoDashExplicitArrayWrapper<TValue>;
} | CarlCui/DefinitelyTyped | lodash/lodash.d.ts | TypeScript |
InterfaceDeclaration | //_.differenceBy
interface LoDashStatic {
/**
* This method is like _.difference except that it accepts iteratee which is invoked for each element of array
* and values to generate the criterion by which uniqueness is computed. The iteratee is invoked with one
* argument: (value).
*
* @param array The array to inspect.
* @param values The values to exclude.
* @param iteratee The iteratee invoked per element.
* @returns Returns the new array of filtered values.
*/
differenceBy<T>(
array: T[]|List<T>,
values?: T[]|List<T>,
iteratee?: ((value: T) => any)|string
): T[];
/**
* @see _.differenceBy
*/
differenceBy<T, W extends Object>(
array: T[]|List<T>,
values?: T[]|List<T>,
iteratee?: W
): T[];
/**
* @see _.differenceBy
*/
differenceBy<T>(
array: T[]|List<T>,
values1?: T[]|List<T>,
values2?: T[]|List<T>,
iteratee?: ((value: T) => any)|string
): T[];
/**
* @see _.differenceBy
*/
differenceBy<T, W extends Object>(
array: T[]|List<T>,
values1?: T[]|List<T>,
values2?: T[]|List<T>,
iteratee?: W
): T[];
/**
* @see _.differenceBy
*/
differenceBy<T>(
array: T[]|List<T>,
values1?: T[]|List<T>,
values2?: T[]|List<T>,
values3?: T[]|List<T>,
iteratee?: ((value: T) => any)|string
): T[];
/**
* @see _.differenceBy
*/
differenceBy<T, W extends Object>(
array: T[]|List<T>,
values1?: T[]|List<T>,
values2?: T[]|List<T>,
values3?: T[]|List<T>,
iteratee?: W
): T[];
/**
* @see _.differenceBy
*/
differenceBy<T, W extends Object>(
array: T[]|List<T>,
values1?: T[]|List<T>,
values2?: T[]|List<T>,
values3?: T[]|List<T>,
values4?: T[]|List<T>,
iteratee?: W
): T[];
/**
* @see _.differenceBy
*/
differenceBy<T>(
array: T[]|List<T>,
values1?: T[]|List<T>,
values2?: T[]|List<T>,
values3?: T[]|List<T>,
values4?: T[]|List<T>,
iteratee?: ((value: T) => any)|string
): T[];
/**
* @see _.differenceBy
*/
differenceBy<T>(
array: T[]|List<T>,
values1?: T[]|List<T>,
values2?: T[]|List<T>,
values3?: T[]|List<T>,
values4?: T[]|List<T>,
values5?: T[]|List<T>,
iteratee?: ((value: T) => any)|string
): T[];
/**
* @see _.differenceBy
*/
differenceBy<T, W extends Object>(
array: T[]|List<T>,
values1?: T[]|List<T>,
values2?: T[]|List<T>,
values3?: T[]|List<T>,
values4?: T[]|List<T>,
values5?: T[]|List<T>,
iteratee?: W
): T[];
/**
* @see _.differenceBy
*/
differenceBy<T>(
array: T[]|List<T>,
...values: any[]
): T[];
} | CarlCui/DefinitelyTyped | lodash/lodash.d.ts | TypeScript |
InterfaceDeclaration |
interface LoDashImplicitArrayWrapper<T> {
/**
* @see _.differenceBy
*/
differenceBy<T>(
values?: T[]|List<T>,
iteratee?: ((value: T) => any)|string
): LoDashImplicitArrayWrapper<T>;
/**
* @see _.differenceBy
*/
differenceBy<T, W extends Object>(
values?: T[]|List<T>,
iteratee?: W
): LoDashImplicitArrayWrapper<T>;
/**
* @see _.differenceBy
*/
differenceBy<T>(
values1?: T[]|List<T>,
values2?: T[]|List<T>,
iteratee?: ((value: T) => any)|string
): LoDashImplicitArrayWrapper<T>;
/**
* @see _.differenceBy
*/
differenceBy<T, W extends Object>(
values1?: T[]|List<T>,
values2?: T[]|List<T>,
iteratee?: W
): LoDashImplicitArrayWrapper<T>;
/**
* @see _.differenceBy
*/
differenceBy<T>(
values1?: T[]|List<T>,
values2?: T[]|List<T>,
values3?: T[]|List<T>,
iteratee?: ((value: T) => any)|string
): LoDashImplicitArrayWrapper<T>;
/**
* @see _.differenceBy
*/
differenceBy<T, W extends Object>(
values1?: T[]|List<T>,
values2?: T[]|List<T>,
values3?: T[]|List<T>,
iteratee?: W
): LoDashImplicitArrayWrapper<T>;
/**
* @see _.differenceBy
*/
differenceBy<T>(
values1?: T[]|List<T>,
values2?: T[]|List<T>,
values3?: T[]|List<T>,
values4?: T[]|List<T>,
iteratee?: ((value: T) => any)|string
): LoDashImplicitArrayWrapper<T>;
/**
* @see _.differenceBy
*/
differenceBy<T, W extends Object>(
values1?: T[]|List<T>,
values2?: T[]|List<T>,
values3?: T[]|List<T>,
values4?: T[]|List<T>,
iteratee?: W
): LoDashImplicitArrayWrapper<T>;
/**
* @see _.differenceBy
*/
differenceBy<T>(
values1?: T[]|List<T>,
values2?: T[]|List<T>,
values3?: T[]|List<T>,
values4?: T[]|List<T>,
values5?: T[]|List<T>,
iteratee?: ((value: T) => any)|string
): LoDashImplicitArrayWrapper<T>;
/**
* @see _.differenceBy
*/
differenceBy<T, W extends Object>(
values1?: T[]|List<T>,
values2?: T[]|List<T>,
values3?: T[]|List<T>,
values4?: T[]|List<T>,
values5?: T[]|List<T>,
iteratee?: W
): LoDashImplicitArrayWrapper<T>;
/**
* @see _.differenceBy
*/
differenceBy<T>(
...values: any[]
): LoDashImplicitArrayWrapper<T>;
} | CarlCui/DefinitelyTyped | lodash/lodash.d.ts | TypeScript |
InterfaceDeclaration |
interface LoDashImplicitObjectWrapper<T> {
/**
* @see _.differenceBy
*/
differenceBy<T>(
values?: T[]|List<T>,
iteratee?: ((value: T) => any)|string
): LoDashImplicitArrayWrapper<T>;
/**
* @see _.differenceBy
*/
differenceBy<T, W extends Object>(
values?: T[]|List<T>,
iteratee?: W
): LoDashImplicitArrayWrapper<T>;
/**
* @see _.differenceBy
*/
differenceBy<T>(
values1?: T[]|List<T>,
values2?: T[]|List<T>,
iteratee?: ((value: T) => any)|string
): LoDashImplicitArrayWrapper<T>;
/**
* @see _.differenceBy
*/
differenceBy<T, W extends Object>(
values1?: T[]|List<T>,
values2?: T[]|List<T>,
iteratee?: W
): LoDashImplicitArrayWrapper<T>;
/**
* @see _.differenceBy
*/
differenceBy<T>(
values1?: T[]|List<T>,
values2?: T[]|List<T>,
values3?: T[]|List<T>,
iteratee?: ((value: T) => any)|string
): LoDashImplicitArrayWrapper<T>;
/**
* @see _.differenceBy
*/
differenceBy<T, W extends Object>(
values1?: T[]|List<T>,
values2?: T[]|List<T>,
values3?: T[]|List<T>,
iteratee?: W
): LoDashImplicitArrayWrapper<T>;
/**
* @see _.differenceBy
*/
differenceBy<T>(
values1?: T[]|List<T>,
values2?: T[]|List<T>,
values3?: T[]|List<T>,
values4?: T[]|List<T>,
iteratee?: ((value: T) => any)|string
): LoDashImplicitArrayWrapper<T>;
/**
* @see _.differenceBy
*/
differenceBy<T, W extends Object>(
values1?: T[]|List<T>,
values2?: T[]|List<T>,
values3?: T[]|List<T>,
values4?: T[]|List<T>,
iteratee?: W
): LoDashImplicitArrayWrapper<T>;
/**
* @see _.differenceBy
*/
differenceBy<T>(
values1?: T[]|List<T>,
values2?: T[]|List<T>,
values3?: T[]|List<T>,
values4?: T[]|List<T>,
values5?: T[]|List<T>,
iteratee?: ((value: T) => any)|string
): LoDashImplicitArrayWrapper<T>;
/**
* @see _.differenceBy
*/
differenceBy<T, W extends Object>(
values1?: T[]|List<T>,
values2?: T[]|List<T>,
values3?: T[]|List<T>,
values4?: T[]|List<T>,
values5?: T[]|List<T>,
iteratee?: W
): LoDashImplicitArrayWrapper<T>;
/**
* @see _.differenceBy
*/
differenceBy<T>(
...values: any[]
): LoDashImplicitArrayWrapper<T>;
} | CarlCui/DefinitelyTyped | lodash/lodash.d.ts | TypeScript |
InterfaceDeclaration |
interface LoDashExplicitArrayWrapper<T> {
/**
* @see _.differenceBy
*/
differenceBy<T>(
values?: T[]|List<T>,
iteratee?: ((value: T) => any)|string
): LoDashExplicitArrayWrapper<T>;
/**
* @see _.differenceBy
*/
differenceBy<T, W extends Object>(
values?: T[]|List<T>,
iteratee?: W
): LoDashExplicitArrayWrapper<T>;
/**
* @see _.differenceBy
*/
differenceBy<T>(
values1?: T[]|List<T>,
values2?: T[]|List<T>,
iteratee?: ((value: T) => any)|string
): LoDashExplicitArrayWrapper<T>;
/**
* @see _.differenceBy
*/
differenceBy<T, W extends Object>(
values1?: T[]|List<T>,
values2?: T[]|List<T>,
iteratee?: W
): LoDashExplicitArrayWrapper<T>;
/**
* @see _.differenceBy
*/
differenceBy<T>(
values1?: T[]|List<T>,
values2?: T[]|List<T>,
values3?: T[]|List<T>,
iteratee?: ((value: T) => any)|string
): LoDashExplicitArrayWrapper<T>;
/**
* @see _.differenceBy
*/
differenceBy<T, W extends Object>(
values1?: T[]|List<T>,
values2?: T[]|List<T>,
values3?: T[]|List<T>,
iteratee?: W
): LoDashExplicitArrayWrapper<T>;
/**
* @see _.differenceBy
*/
differenceBy<T>(
values1?: T[]|List<T>,
values2?: T[]|List<T>,
values3?: T[]|List<T>,
values4?: T[]|List<T>,
iteratee?: ((value: T) => any)|string
): LoDashExplicitArrayWrapper<T>;
/**
* @see _.differenceBy
*/
differenceBy<T, W extends Object>(
values1?: T[]|List<T>,
values2?: T[]|List<T>,
values3?: T[]|List<T>,
values4?: T[]|List<T>,
iteratee?: W
): LoDashExplicitArrayWrapper<T>;
/**
* @see _.differenceBy
*/
differenceBy<T>(
values1?: T[]|List<T>,
values2?: T[]|List<T>,
values3?: T[]|List<T>,
values4?: T[]|List<T>,
values5?: T[]|List<T>,
iteratee?: ((value: T) => any)|string
): LoDashExplicitArrayWrapper<T>;
/**
* @see _.differenceBy
*/
differenceBy<T, W extends Object>(
values1?: T[]|List<T>,
values2?: T[]|List<T>,
values3?: T[]|List<T>,
values4?: T[]|List<T>,
values5?: T[]|List<T>,
iteratee?: W
): LoDashExplicitArrayWrapper<T>;
/**
* @see _.differenceBy
*/
differenceBy<T>(
...values: any[]
): LoDashExplicitArrayWrapper<T>;
} | CarlCui/DefinitelyTyped | lodash/lodash.d.ts | TypeScript |
InterfaceDeclaration |
interface LoDashExplicitObjectWrapper<T> {
/**
* @see _.differenceBy
*/
differenceBy<T>(
values?: T[]|List<T>,
iteratee?: ((value: T) => any)|string
): LoDashExplicitArrayWrapper<T>;
/**
* @see _.differenceBy
*/
differenceBy<T, W extends Object>(
values?: T[]|List<T>,
iteratee?: W
): LoDashExplicitArrayWrapper<T>;
/**
* @see _.differenceBy
*/
differenceBy<T>(
values1?: T[]|List<T>,
values2?: T[]|List<T>,
iteratee?: ((value: T) => any)|string
): LoDashExplicitArrayWrapper<T>;
/**
* @see _.differenceBy
*/
differenceBy<T, W extends Object>(
values1?: T[]|List<T>,
values2?: T[]|List<T>,
iteratee?: W
): LoDashExplicitArrayWrapper<T>;
/**
* @see _.differenceBy
*/
differenceBy<T>(
values1?: T[]|List<T>,
values2?: T[]|List<T>,
values3?: T[]|List<T>,
iteratee?: ((value: T) => any)|string
): LoDashExplicitArrayWrapper<T>;
/**
* @see _.differenceBy
*/
differenceBy<T, W extends Object>(
values1?: T[]|List<T>,
values2?: T[]|List<T>,
values3?: T[]|List<T>,
iteratee?: W
): LoDashExplicitArrayWrapper<T>;
/**
* @see _.differenceBy
*/
differenceBy<T>(
values1?: T[]|List<T>,
values2?: T[]|List<T>,
values3?: T[]|List<T>,
values4?: T[]|List<T>,
iteratee?: ((value: T) => any)|string
): LoDashExplicitArrayWrapper<T>;
/**
* @see _.differenceBy
*/
differenceBy<T, W extends Object>(
values1?: T[]|List<T>,
values2?: T[]|List<T>,
values3?: T[]|List<T>,
values4?: T[]|List<T>,
iteratee?: W
): LoDashExplicitArrayWrapper<T>;
/**
* @see _.differenceBy
*/
differenceBy<T>(
values1?: T[]|List<T>,
values2?: T[]|List<T>,
values3?: T[]|List<T>,
values4?: T[]|List<T>,
values5?: T[]|List<T>,
iteratee?: ((value: T) => any)|string
): LoDashExplicitArrayWrapper<T>;
/**
* @see _.differenceBy
*/
differenceBy<T, W extends Object>(
values1?: T[]|List<T>,
values2?: T[]|List<T>,
values3?: T[]|List<T>,
values4?: T[]|List<T>,
values5?: T[]|List<T>,
iteratee?: W
): LoDashExplicitArrayWrapper<T>;
/**
* @see _.differenceBy
*/
differenceBy<T>(
...values: any[]
): LoDashExplicitArrayWrapper<T>;
} | CarlCui/DefinitelyTyped | lodash/lodash.d.ts | TypeScript |
InterfaceDeclaration | //_.differenceWith DUMMY
interface LoDashStatic {
/**
* Creates an array of unique `array` values not included in the other
* provided arrays using [`SameValueZero`](http://ecma-international.org/ecma-262/6.0/#sec-samevaluezero)
* for equality comparisons.
*
* @static
* @memberOf _
* @category Array
* @param {Array} array The array to inspect.
* @param {...Array} [values] The values to exclude.
* @returns {Array} Returns the new array of filtered values.
* @example
*
* _.difference([3, 2, 1], [4, 2]);
* // => [3, 1]
*/
differenceWith(
array: any[]|List<any>,
...values: any[]
): any[];
} | CarlCui/DefinitelyTyped | lodash/lodash.d.ts | TypeScript |
InterfaceDeclaration | //_.drop
interface LoDashStatic {
/**
* Creates a slice of array with n elements dropped from the beginning.
*
* @param array The array to query.
* @param n The number of elements to drop.
* @return Returns the slice of array.
*/
drop<T>(array: T[]|List<T>, n?: number): T[];
} | CarlCui/DefinitelyTyped | lodash/lodash.d.ts | TypeScript |
InterfaceDeclaration |
interface LoDashImplicitArrayWrapper<T> {
/**
* @see _.drop
*/
drop(n?: number): LoDashImplicitArrayWrapper<T>;
} | CarlCui/DefinitelyTyped | lodash/lodash.d.ts | TypeScript |