type stringclasses 7
values | content stringlengths 4 9.55k | repo stringlengths 7 96 | path stringlengths 4 178 | language stringclasses 1
value |
|---|---|---|---|---|
MethodDeclaration |
static parseContext(context: IContext): IContext; | LevelUp-org/level-up | cloudfunctions/node_modules/@cloudbase/node-sdk/types/cloudbase.d.ts | TypeScript |
MethodDeclaration |
init(config?: ICloudBaseConfig): void; | LevelUp-org/level-up | cloudfunctions/node_modules/@cloudbase/node-sdk/types/cloudbase.d.ts | TypeScript |
MethodDeclaration |
database(dbConfig?: any): Db; | LevelUp-org/level-up | cloudfunctions/node_modules/@cloudbase/node-sdk/types/cloudbase.d.ts | TypeScript |
MethodDeclaration | /**
* 调用云函数
*
* @param param0
* @param opts
*/
callFunction({ name, data }: {
name: any;
data: any;
}, opts?: ICustomReqOpts): Promise<any>; | LevelUp-org/level-up | cloudfunctions/node_modules/@cloudbase/node-sdk/types/cloudbase.d.ts | TypeScript |
MethodDeclaration |
auth(): any; | LevelUp-org/level-up | cloudfunctions/node_modules/@cloudbase/node-sdk/types/cloudbase.d.ts | TypeScript |
MethodDeclaration | /**
* openapi调用
*
* @param param0
* @param opts
*/
callWxOpenApi({ apiName, requestData }: {
apiName: any;
requestData: any;
}, opts?: ICustomReqOpts): Promise<any>; | LevelUp-org/level-up | cloudfunctions/node_modules/@cloudbase/node-sdk/types/cloudbase.d.ts | TypeScript |
MethodDeclaration | /**
* wxpayapi调用
*
* @param param0
* @param opts
*/
callWxPayApi({ apiName, requestData }: {
apiName: any;
requestData: any;
}, opts?: ICustomReqOpts): Promise<any>; | LevelUp-org/level-up | cloudfunctions/node_modules/@cloudbase/node-sdk/types/cloudbase.d.ts | TypeScript |
MethodDeclaration | /**
* 微信云调用
*
* @param param0
* @param opts
*/
callCompatibleWxOpenApi({ apiName, requestData }: {
apiName: any;
requestData: any;
}, opts?: ICustomReqOpts): Promise<any>; | LevelUp-org/level-up | cloudfunctions/node_modules/@cloudbase/node-sdk/types/cloudbase.d.ts | TypeScript |
MethodDeclaration | /**
* 上传文件
*
* @param param0
* @param opts
*/
uploadFile({ cloudPath, fileContent }: {
cloudPath: any;
fileContent: any;
}, opts?: ICustomReqOpts): Promise<IUploadFileRes>; | LevelUp-org/level-up | cloudfunctions/node_modules/@cloudbase/node-sdk/types/cloudbase.d.ts | TypeScript |
MethodDeclaration | /**
* 删除文件
*
* @param param0
* @param opts
*/
deleteFile({ fileList }: {
fileList: any;
}, opts?: ICustomReqOpts): Promise<ICustomErrRes | IDeleteFileRes>; | LevelUp-org/level-up | cloudfunctions/node_modules/@cloudbase/node-sdk/types/cloudbase.d.ts | TypeScript |
MethodDeclaration | /**
* 获取临时连接
*
* @param param0
* @param opts
*/
getTempFileURL({ fileList }: {
fileList: any;
}, opts?: ICustomReqOpts): Promise<ICustomErrRes | IGetFileUrlRes>; | LevelUp-org/level-up | cloudfunctions/node_modules/@cloudbase/node-sdk/types/cloudbase.d.ts | TypeScript |
MethodDeclaration | /**
* 下载文件
*
* @param params
* @param opts
*/
downloadFile(params: {
fileID: string;
tempFilePath?: string;
}, opts?: ICustomReqOpts): Promise<ICustomErrRes | IDownloadFileRes>; | LevelUp-org/level-up | cloudfunctions/node_modules/@cloudbase/node-sdk/types/cloudbase.d.ts | TypeScript |
MethodDeclaration | /**
* 获取上传元数据
*
* @param param0
* @param opts
*/
getUploadMetadata({ cloudPath }: {
cloudPath: any;
}, opts?: ICustomReqOpts): Promise<any>; | LevelUp-org/level-up | cloudfunctions/node_modules/@cloudbase/node-sdk/types/cloudbase.d.ts | TypeScript |
MethodDeclaration | /**
* 获取logger
*
*/
logger(): Log; | LevelUp-org/level-up | cloudfunctions/node_modules/@cloudbase/node-sdk/types/cloudbase.d.ts | TypeScript |
ArrowFunction |
(fill: string, size: number) => (
<svg
aria-hidden="true" | Y0moo/ui00000 | src/components/Icon/icons/maximize.tsx | TypeScript |
ClassDeclaration |
export class CreateUnivDto{
@IsString()
nameEn: string;
@IsString()
nameSp: string;
@IsString()
descriptionEn: string;
@IsString()
descriptionSp: string;
@IsString()
location: string;
@IsString()
founded: string;
@IsString()
intStudents: string;
@IsStr... | DaksinWorld/study-backend | src/univ/dto/create-univ.dto.ts | TypeScript |
ArrowFunction |
() => {
const { t } = useTranslation();
const {
values: { data },
} = useFormikContext<FormikValues>();
const kafkaSource = EventSources.KafkaSource;
const saslEnable = data?.[kafkaSource]?.net?.sasl?.enable;
const tlsEnable = data?.[kafkaSource]?.net?.tls?.enable;
return (
<>
<h3 classNam... | cwilkers/console | frontend/packages/knative-plugin/src/components/add/event-sources/KafkaSourceNetSection.tsx | TypeScript |
MethodDeclaration |
t('knative-plugin~Enable') | cwilkers/console | frontend/packages/knative-plugin/src/components/add/event-sources/KafkaSourceNetSection.tsx | TypeScript |
MethodDeclaration |
t('knative-plugin~Password') | cwilkers/console | frontend/packages/knative-plugin/src/components/add/event-sources/KafkaSourceNetSection.tsx | TypeScript |
MethodDeclaration |
t('knative-plugin~CA Certificate') | cwilkers/console | frontend/packages/knative-plugin/src/components/add/event-sources/KafkaSourceNetSection.tsx | TypeScript |
MethodDeclaration |
t('knative-plugin~Certificate') | cwilkers/console | frontend/packages/knative-plugin/src/components/add/event-sources/KafkaSourceNetSection.tsx | TypeScript |
ClassDeclaration |
export class FileSystemFactory {
public getUserFileSystem(username: string): FileSystemCommunicator {
return this.getFileSystemCommunicator("filesystem." + username, 80)
}
private getFileSystemCommunicator(host: string, port: number): FileSystemCommunicator {
const client = new ClientCommunicator(host,... | tallen94/iam | apps/base/modules/FileSystem/FileSystemFactory.ts | TypeScript |
MethodDeclaration |
public getUserFileSystem(username: string): FileSystemCommunicator {
return this.getFileSystemCommunicator("filesystem." + username, 80)
} | tallen94/iam | apps/base/modules/FileSystem/FileSystemFactory.ts | TypeScript |
MethodDeclaration |
private getFileSystemCommunicator(host: string, port: number): FileSystemCommunicator {
const client = new ClientCommunicator(host, port)
return new FileSystemCommunicator(client)
} | tallen94/iam | apps/base/modules/FileSystem/FileSystemFactory.ts | TypeScript |
ArrowFunction |
(props: { children: any }) => {
const { children } = props;
return (
<div className="flex flex-col h-screen">
<Header />
<div className="bg-[url('../public/backgroundPage2.png')] bg-cover bg-center grow relative">
<div className="absolute grow bg-black/60 w-full h-full"></div>
... | Vixx-X/DEGVABank-frontend | src/components/Globals/Layout/MainLayout/Advanced/index.tsx | TypeScript |
ArrowFunction |
(propertyMapping) => propertyMapping.property.value.name === propertyName | MauricioUyaguari/legend-studio | packages/legend-graph/src/models/metamodels/pure/packageableElements/store/modelToModel/mapping/PureInstanceSetImplementation.ts | TypeScript |
ArrowFunction |
(propertyMapping) =>
propertyMapping.targetSetImplementation &&
propertyMapping.targetSetImplementation.id.value === targetId | MauricioUyaguari/legend-studio | packages/legend-graph/src/models/metamodels/pure/packageableElements/store/modelToModel/mapping/PureInstanceSetImplementation.ts | TypeScript |
ArrowFunction |
(propertyMapping) => !propertyMapping.isStub | MauricioUyaguari/legend-studio | packages/legend-graph/src/models/metamodels/pure/packageableElements/store/modelToModel/mapping/PureInstanceSetImplementation.ts | TypeScript |
ClassDeclaration |
export class PureInstanceSetImplementation
extends InstanceSetImplementation
implements Hashable, Stubable
{
srcClass: OptionalPackageableElementReference<Class>;
filter?: RawLambda | undefined; // @MARKER GENERATED MODEL DISCREPANCY --- Studio does not process lambda
declare propertyMappings: PurePropertyMa... | MauricioUyaguari/legend-studio | packages/legend-graph/src/models/metamodels/pure/packageableElements/store/modelToModel/mapping/PureInstanceSetImplementation.ts | TypeScript |
MethodDeclaration |
setPropertyMappings(value: PurePropertyMapping[]): void {
this.propertyMappings = value;
} | MauricioUyaguari/legend-studio | packages/legend-graph/src/models/metamodels/pure/packageableElements/store/modelToModel/mapping/PureInstanceSetImplementation.ts | TypeScript |
MethodDeclaration |
setSrcClass(value: Class | undefined): void {
this.srcClass.setValue(value);
} | MauricioUyaguari/legend-studio | packages/legend-graph/src/models/metamodels/pure/packageableElements/store/modelToModel/mapping/PureInstanceSetImplementation.ts | TypeScript |
MethodDeclaration |
setMappingFilter(value: RawLambda | undefined): void {
this.filter = value;
} | MauricioUyaguari/legend-studio | packages/legend-graph/src/models/metamodels/pure/packageableElements/store/modelToModel/mapping/PureInstanceSetImplementation.ts | TypeScript |
MethodDeclaration |
findPropertyMapping(
propertyName: string,
targetId: string | undefined,
): PurePropertyMapping | undefined {
let properties = undefined;
properties = this.propertyMappings.filter(
(propertyMapping) => propertyMapping.property.value.name === propertyName,
);
if (targetId === undefined |... | MauricioUyaguari/legend-studio | packages/legend-graph/src/models/metamodels/pure/packageableElements/store/modelToModel/mapping/PureInstanceSetImplementation.ts | TypeScript |
MethodDeclaration |
accept_SetImplementationVisitor<T>(visitor: SetImplementationVisitor<T>): T {
return visitor.visit_PureInstanceSetImplementation(this);
} | MauricioUyaguari/legend-studio | packages/legend-graph/src/models/metamodels/pure/packageableElements/store/modelToModel/mapping/PureInstanceSetImplementation.ts | TypeScript |
MethodDeclaration |
getEmbeddedSetImplmentations(): InstanceSetImplementation[] {
return [];
} | MauricioUyaguari/legend-studio | packages/legend-graph/src/models/metamodels/pure/packageableElements/store/modelToModel/mapping/PureInstanceSetImplementation.ts | TypeScript |
FunctionDeclaration | /**
* Returns the composition of two foldables
*
* @example
* import { getFoldableComposition } from 'fp-ts/lib/Foldable'
* import { array } from 'fp-ts/lib/Array'
* import { option, some, none } from 'fp-ts/lib/Option'
* import { monoidString } from 'fp-ts/lib/Monoid'
*
* const F = getFoldableComposition(arra... | Herlevsen/fp-ts | src/Foldable.ts | TypeScript |
FunctionDeclaration |
export function getFoldableComposition<F extends URIS2, G extends URIS2>(
F: Foldable2<F>,
G: Foldable2<G>
): FoldableComposition22<F, G> | Herlevsen/fp-ts | src/Foldable.ts | TypeScript |
FunctionDeclaration |
export function getFoldableComposition<F extends URIS2, G extends URIS, E>(
F: Foldable2C<F, E>,
G: Foldable1<G>
): FoldableComposition2C1<F, G, E> | Herlevsen/fp-ts | src/Foldable.ts | TypeScript |
FunctionDeclaration |
export function getFoldableComposition<F extends URIS2, G extends URIS>(
F: Foldable2<F>,
G: Foldable1<G>
): FoldableComposition21<F, G> | Herlevsen/fp-ts | src/Foldable.ts | TypeScript |
FunctionDeclaration |
export function getFoldableComposition<F extends URIS, G extends URIS2, E>(
F: Foldable1<F>,
G: Foldable2C<G, E>
): FoldableComposition12C<F, G, E> | Herlevsen/fp-ts | src/Foldable.ts | TypeScript |
FunctionDeclaration |
export function getFoldableComposition<F extends URIS, G extends URIS2>(
F: Foldable1<F>,
G: Foldable2<G>
): FoldableComposition12<F, G> | Herlevsen/fp-ts | src/Foldable.ts | TypeScript |
FunctionDeclaration |
export function getFoldableComposition<F extends URIS, G extends URIS>(
F: Foldable1<F>,
G: Foldable1<G>
): FoldableComposition11<F, G> | Herlevsen/fp-ts | src/Foldable.ts | TypeScript |
FunctionDeclaration |
export function getFoldableComposition<F, G>(F: Foldable<F>, G: Foldable<G>): FoldableComposition<F, G> | Herlevsen/fp-ts | src/Foldable.ts | TypeScript |
FunctionDeclaration |
export function getFoldableComposition<F, G>(F: Foldable<F>, G: Foldable<G>): FoldableComposition<F, G> {
return {
reduce: (fga, b, f) => F.reduce(fga, b, (b, ga) => G.reduce(ga, b, f)),
foldMap: M => {
const foldMapF = F.foldMap(M)
const foldMapG = G.foldMap(M)
return (fa, f) => foldMapF(f... | Herlevsen/fp-ts | src/Foldable.ts | TypeScript |
FunctionDeclaration | /**
* Similar to 'reduce', but the result is encapsulated in a monad.
*
* Note: this function is not generally stack-safe, e.g., for monads which build up thunks a la `IO`.
*
* @example
* import { foldM } from 'fp-ts/lib/Foldable'
* import { option, some } from 'fp-ts/lib/Option'
* import { make, tree } from 'f... | Herlevsen/fp-ts | src/Foldable.ts | TypeScript |
FunctionDeclaration |
export function foldM<M extends URIS2, F extends URIS>(
M: Monad2<M>,
F: Foldable1<F>
): <E, A, B>(fa: Kind<F, A>, b: B, f: (b: B, a: A) => Kind2<M, E, B>) => Kind2<M, E, B> | Herlevsen/fp-ts | src/Foldable.ts | TypeScript |
FunctionDeclaration |
export function foldM<M extends URIS2, F extends URIS, E>(
M: Monad2C<M, E>,
F: Foldable1<F>
): <A, B>(fa: Kind<F, A>, b: B, f: (b: B, a: A) => Kind2<M, E, B>) => Kind2<M, E, B> | Herlevsen/fp-ts | src/Foldable.ts | TypeScript |
FunctionDeclaration |
export function foldM<M extends URIS, F extends URIS>(
M: Monad1<M>,
F: Foldable1<F>
): <A, B>(fa: Kind<F, A>, b: B, f: (b: B, a: A) => Kind<M, B>) => Kind<M, B> | Herlevsen/fp-ts | src/Foldable.ts | TypeScript |
FunctionDeclaration |
export function foldM<M, F>(
M: Monad<M>,
F: Foldable<F>
): <A, B>(fa: HKT<F, A>, b: B, f: (b: B, a: A) => HKT<M, B>) => HKT<M, B> | Herlevsen/fp-ts | src/Foldable.ts | TypeScript |
FunctionDeclaration |
export function foldM<M, F>(
M: Monad<M>,
F: Foldable<F>
): <A, B>(fa: HKT<F, A>, b: B, f: (b: B, a: A) => HKT<M, B>) => HKT<M, B> {
return (fa, b, f) => F.reduce(fa, M.of(b), (mb, a) => M.chain(mb, b => f(b, a)))
} | Herlevsen/fp-ts | src/Foldable.ts | TypeScript |
FunctionDeclaration | /**
* Fold a data structure, accumulating values in some `Monoid`, combining adjacent elements using the specified separator
*
* @example
* import { intercalate } from 'fp-ts/lib/Foldable'
* import { monoidString } from 'fp-ts/lib/Monoid'
* import { make, tree } from 'fp-ts/lib/Tree'
*
* const t = make('a', [ma... | Herlevsen/fp-ts | src/Foldable.ts | TypeScript |
FunctionDeclaration |
export function intercalate<M, F extends URIS2>(M: Monoid<M>, F: Foldable2<F>): <E>(sep: M, fm: Kind2<F, E, M>) => M | Herlevsen/fp-ts | src/Foldable.ts | TypeScript |
FunctionDeclaration |
export function intercalate<M, F extends URIS2, E>(M: Monoid<M>, F: Foldable2C<F, E>): (sep: M, fm: Kind2<F, E, M>) => M | Herlevsen/fp-ts | src/Foldable.ts | TypeScript |
FunctionDeclaration |
export function intercalate<M, F extends URIS>(M: Monoid<M>, F: Foldable1<F>): (sep: M, fm: Kind<F, M>) => M | Herlevsen/fp-ts | src/Foldable.ts | TypeScript |
FunctionDeclaration |
export function intercalate<M, F>(M: Monoid<M>, F: Foldable<F>): (sep: M, fm: HKT<F, M>) => M | Herlevsen/fp-ts | src/Foldable.ts | TypeScript |
FunctionDeclaration |
export function intercalate<M, F>(M: Monoid<M>, F: Foldable<F>): (sep: M, fm: HKT<F, M>) => M {
interface Acc<M> {
init: boolean
acc: M
}
return (sep, fm) => {
const go = ({ init, acc }: Acc<M>, x: M): Acc<M> =>
init ? { init: false, acc: x } : { init: false, acc: M.concat(M.concat(acc, sep), x... | Herlevsen/fp-ts | src/Foldable.ts | TypeScript |
FunctionDeclaration | /**
* Traverse a data structure, performing some effects encoded by an `Applicative` functor at each value, ignoring the
* final result.
*
* @example
* import { array } from 'fp-ts/lib/Array'
* import { traverse_ } from 'fp-ts/lib/Foldable'
* import { io } from 'fp-ts/lib/IO'
*
* let log = ''
* const append =... | Herlevsen/fp-ts | src/Foldable.ts | TypeScript |
FunctionDeclaration |
export function traverse_<M extends URIS2, F extends URIS>(
M: Applicative2<M>,
F: Foldable1<F>
): <E, A, B>(fa: Kind<F, A>, f: (a: A) => Kind2<M, E, B>) => Kind2<M, E, void> | Herlevsen/fp-ts | src/Foldable.ts | TypeScript |
FunctionDeclaration |
export function traverse_<M extends URIS2, F extends URIS, E>(
M: Applicative2C<M, E>,
F: Foldable1<F>
): <A, B>(fa: Kind<F, A>, f: (a: A) => Kind2<M, E, B>) => Kind2<M, E, void> | Herlevsen/fp-ts | src/Foldable.ts | TypeScript |
FunctionDeclaration |
export function traverse_<M extends URIS, F extends URIS>(
M: Applicative1<M>,
F: Foldable1<F>
): <A, B>(fa: Kind<F, A>, f: (a: A) => Kind<M, B>) => Kind<M, void> | Herlevsen/fp-ts | src/Foldable.ts | TypeScript |
FunctionDeclaration |
export function traverse_<M, F>(
M: Applicative<M>,
F: Foldable<F>
): <A, B>(fa: HKT<F, A>, f: (a: A) => HKT<M, B>) => HKT<M, void> | Herlevsen/fp-ts | src/Foldable.ts | TypeScript |
FunctionDeclaration |
export function traverse_<M, F>(
M: Applicative<M>,
F: Foldable<F>
): <A, B>(fa: HKT<F, A>, f: (a: A) => HKT<M, B>) => HKT<M, void> {
const applyFirst = <B>(mu: HKT<M, void>, mb: HKT<M, B>): HKT<M, void> => M.ap(M.map(mu, constant), mb)
const mu: HKT<M, void> = M.of(undefined)
return (fa, f) => F.reduce(fa, ... | Herlevsen/fp-ts | src/Foldable.ts | TypeScript |
ArrowFunction |
(fga, b, f) => F.reduce(fga, b, (b, ga) => G.reduce(ga, b, f)) | Herlevsen/fp-ts | src/Foldable.ts | TypeScript |
ArrowFunction |
(b, ga) => G.reduce(ga, b, f) | Herlevsen/fp-ts | src/Foldable.ts | TypeScript |
ArrowFunction |
M => {
const foldMapF = F.foldMap(M)
const foldMapG = G.foldMap(M)
return (fa, f) => foldMapF(fa, ga => foldMapG(ga, f))
} | Herlevsen/fp-ts | src/Foldable.ts | TypeScript |
ArrowFunction |
(fa, f) => foldMapF(fa, ga => foldMapG(ga, f)) | Herlevsen/fp-ts | src/Foldable.ts | TypeScript |
ArrowFunction |
ga => foldMapG(ga, f) | Herlevsen/fp-ts | src/Foldable.ts | TypeScript |
ArrowFunction |
(fa, b, f) => F.reduceRight(fa, b, (ga, b) => G.reduceRight(ga, b, f)) | Herlevsen/fp-ts | src/Foldable.ts | TypeScript |
ArrowFunction |
(ga, b) => G.reduceRight(ga, b, f) | Herlevsen/fp-ts | src/Foldable.ts | TypeScript |
ArrowFunction |
(fa, b, f) => F.reduce(fa, M.of(b), (mb, a) => M.chain(mb, b => f(b, a))) | Herlevsen/fp-ts | src/Foldable.ts | TypeScript |
ArrowFunction |
(mb, a) => M.chain(mb, b => f(b, a)) | Herlevsen/fp-ts | src/Foldable.ts | TypeScript |
ArrowFunction |
b => f(b, a) | Herlevsen/fp-ts | src/Foldable.ts | TypeScript |
ArrowFunction |
(sep, fm) => {
const go = ({ init, acc }: Acc<M>, x: M): Acc<M> =>
init ? { init: false, acc: x } : { init: false, acc: M.concat(M.concat(acc, sep), x) }
return F.reduce(fm, { init: true, acc: M.empty }, go).acc
} | Herlevsen/fp-ts | src/Foldable.ts | TypeScript |
ArrowFunction |
({ init, acc }: Acc<M>, x: M): Acc<M> =>
init ? { init: false, acc: x } : { init: false, acc: M.concat(M.concat(acc, sep), x) } | Herlevsen/fp-ts | src/Foldable.ts | TypeScript |
ArrowFunction |
<B>(mu: HKT<M, void>, mb: HKT<M, B>): HKT<M, void> => M.ap(M.map(mu, constant), mb) | Herlevsen/fp-ts | src/Foldable.ts | TypeScript |
ArrowFunction |
(fa, f) => F.reduce(fa, mu, (mu, a) => applyFirst(mu, f(a))) | Herlevsen/fp-ts | src/Foldable.ts | TypeScript |
ArrowFunction |
(mu, a) => applyFirst(mu, f(a)) | Herlevsen/fp-ts | src/Foldable.ts | TypeScript |
InterfaceDeclaration | /**
* @since 2.0.0
*/
export interface Foldable<F> {
readonly URI: F
readonly reduce: <A, B>(fa: HKT<F, A>, b: B, f: (b: B, a: A) => B) => B
readonly foldMap: <M>(M: Monoid<M>) => <A>(fa: HKT<F, A>, f: (a: A) => M) => M
readonly reduceRight: <A, B>(fa: HKT<F, A>, b: B, f: (a: A, b: B) => B) => B
} | Herlevsen/fp-ts | src/Foldable.ts | TypeScript |
InterfaceDeclaration | /**
* @since 2.0.0
*/
export interface Foldable1<F extends URIS> {
readonly URI: F
readonly reduce: <A, B>(fa: Kind<F, A>, b: B, f: (b: B, a: A) => B) => B
readonly foldMap: <M>(M: Monoid<M>) => <A>(fa: Kind<F, A>, f: (a: A) => M) => M
readonly reduceRight: <A, B>(fa: Kind<F, A>, b: B, f: (a: A, b: B) => B) =... | Herlevsen/fp-ts | src/Foldable.ts | TypeScript |
InterfaceDeclaration | /**
* @since 2.0.0
*/
export interface Foldable2<F extends URIS2> {
readonly URI: F
readonly reduce: <E, A, B>(fa: Kind2<F, E, A>, b: B, f: (b: B, a: A) => B) => B
readonly foldMap: <M>(M: Monoid<M>) => <E, A>(fa: Kind2<F, E, A>, f: (a: A) => M) => M
readonly reduceRight: <E, A, B>(fa: Kind2<F, E, A>, b: B, f... | Herlevsen/fp-ts | src/Foldable.ts | TypeScript |
InterfaceDeclaration | /**
* @since 2.0.0
*/
export interface Foldable2C<F extends URIS2, E> {
readonly URI: F
readonly _E: E
readonly reduce: <A, B>(fa: Kind2<F, E, A>, b: B, f: (b: B, a: A) => B) => B
readonly foldMap: <M>(M: Monoid<M>) => <A>(fa: Kind2<F, E, A>, f: (a: A) => M) => M
readonly reduceRight: <A, B>(fa: Kind2<F, E,... | Herlevsen/fp-ts | src/Foldable.ts | TypeScript |
InterfaceDeclaration | /**
* @since 2.0.0
*/
export interface Foldable3<F extends URIS3> {
readonly URI: F
readonly reduce: <R, E, A, B>(fa: Kind3<F, R, E, A>, b: B, f: (b: B, a: A) => B) => B
readonly foldMap: <M>(M: Monoid<M>) => <R, E, A>(fa: Kind3<F, R, E, A>, f: (a: A) => M) => M
readonly reduceRight: <R, E, A, B>(fa: Kind3<F,... | Herlevsen/fp-ts | src/Foldable.ts | TypeScript |
InterfaceDeclaration | /**
* @since 2.0.0
*/
export interface Foldable4<F extends URIS4> {
readonly URI: F
readonly reduce: <S, R, E, A, B>(fa: Kind4<F, S, R, E, A>, b: B, f: (b: B, a: A) => B) => B
readonly foldMap: <M>(M: Monoid<M>) => <S, R, E, A>(fa: Kind4<F, S, R, E, A>, f: (a: A) => M) => M
readonly reduceRight: <S, R, E, A, ... | Herlevsen/fp-ts | src/Foldable.ts | TypeScript |
InterfaceDeclaration | /**
* @since 2.0.0
*/
export interface FoldableComposition<F, G> {
readonly reduce: <A, B>(fga: HKT<F, HKT<G, A>>, b: B, f: (b: B, a: A) => B) => B
readonly foldMap: <M>(M: Monoid<M>) => <A>(fa: HKT<F, HKT<G, A>>, f: (a: A) => M) => M
readonly reduceRight: <A, B>(fa: HKT<F, HKT<G, A>>, b: B, f: (a: A, b: B) => ... | Herlevsen/fp-ts | src/Foldable.ts | TypeScript |
InterfaceDeclaration | /**
* @since 2.0.0
*/
export interface FoldableComposition11<F extends URIS, G extends URIS> {
readonly reduce: <A, B>(fga: Kind<F, Kind<G, A>>, b: B, f: (b: B, a: A) => B) => B
readonly foldMap: <M>(M: Monoid<M>) => <A>(fa: Kind<F, Kind<G, A>>, f: (a: A) => M) => M
readonly reduceRight: <A, B>(fa: Kind<F, Kind... | Herlevsen/fp-ts | src/Foldable.ts | TypeScript |
InterfaceDeclaration | /**
* @since 2.0.0
*/
export interface FoldableComposition12<F extends URIS, G extends URIS2> {
readonly reduce: <E, A, B>(fga: Kind<F, Kind2<G, E, A>>, b: B, f: (b: B, a: A) => B) => B
readonly foldMap: <M>(M: Monoid<M>) => <E, A>(fa: Kind<F, Kind2<G, E, A>>, f: (a: A) => M) => M
readonly reduceRight: <E, A, B... | Herlevsen/fp-ts | src/Foldable.ts | TypeScript |
InterfaceDeclaration | /**
* @since 2.0.0
*/
export interface FoldableComposition12C<F extends URIS, G extends URIS2, E> {
readonly reduce: <A, B>(fga: Kind<F, Kind2<G, E, A>>, b: B, f: (b: B, a: A) => B) => B
readonly foldMap: <M>(M: Monoid<M>) => <A>(fa: Kind<F, Kind2<G, E, A>>, f: (a: A) => M) => M
readonly reduceRight: <A, B>(fa:... | Herlevsen/fp-ts | src/Foldable.ts | TypeScript |
InterfaceDeclaration | /**
* @since 2.0.0
*/
export interface FoldableComposition21<F extends URIS2, G extends URIS> {
readonly reduce: <E, A, B>(fga: Kind2<F, E, Kind<G, A>>, b: B, f: (b: B, a: A) => B) => B
readonly foldMap: <M>(M: Monoid<M>) => <E, A>(fa: Kind2<F, E, Kind<G, A>>, f: (a: A) => M) => M
readonly reduceRight: <E, A, B... | Herlevsen/fp-ts | src/Foldable.ts | TypeScript |
InterfaceDeclaration | /**
* @since 2.0.0
*/
export interface FoldableComposition2C1<F extends URIS2, G extends URIS, E> {
readonly reduce: <A, B>(fga: Kind2<F, E, Kind<G, A>>, b: B, f: (b: B, a: A) => B) => B
readonly foldMap: <M>(M: Monoid<M>) => <A>(fa: Kind2<F, E, Kind<G, A>>, f: (a: A) => M) => M
readonly reduceRight: <A, B>(fa:... | Herlevsen/fp-ts | src/Foldable.ts | TypeScript |
InterfaceDeclaration | /**
* @since 2.0.0
*/
export interface FoldableComposition22<F extends URIS2, G extends URIS2> {
readonly reduce: <FE, GE, A, B>(fga: Kind2<F, FE, Kind2<G, GE, A>>, b: B, f: (b: B, a: A) => B) => B
readonly foldMap: <M>(M: Monoid<M>) => <FE, GE, A>(fa: Kind2<F, FE, Kind2<G, GE, A>>, f: (a: A) => M) => M
readonl... | Herlevsen/fp-ts | src/Foldable.ts | TypeScript |
InterfaceDeclaration | /**
* @since 2.0.0
*/
export interface FoldableComposition22C<F extends URIS2, G extends URIS2, E> {
readonly reduce: <FE, A, B>(fga: Kind2<F, FE, Kind2<G, E, A>>, b: B, f: (b: B, a: A) => B) => B
readonly foldMap: <M>(M: Monoid<M>) => <FE, A>(fa: Kind2<F, FE, Kind2<G, E, A>>, f: (a: A) => M) => M
readonly redu... | Herlevsen/fp-ts | src/Foldable.ts | TypeScript |
InterfaceDeclaration |
interface Acc<M> {
init: boolean
acc: M
} | Herlevsen/fp-ts | src/Foldable.ts | TypeScript |
ClassDeclaration |
class EventsManager {
private _client: typeof Client;
private _events: Collection<string, DiscordEvent>;
private _path: string;
constructor(client: typeof Client) {
this._client = client;
this._events = new Collection();
this._path = resolve(__dirname, '..', 'events');
}
... | juststopp/gways | src/utils/EventsManager.ts | TypeScript |
MethodDeclaration |
addEvent(event: DiscordEvent): void {
this._events.set(event._name.toLowerCase(), event);
this._client.on(event._name, event.run.bind(event));
delete require.cache[require.resolve(this._path + '\\' + event._name)];
} | juststopp/gways | src/utils/EventsManager.ts | TypeScript |
MethodDeclaration |
async loadEvents(): Promise<void> {
try {
await access(this._path);
} catch(error) { return; }
const events = await readdir(this._path);
if(events && events.length > 0) {
for(const event of events) {
const path = resolve(this._path, event);
... | juststopp/gways | src/utils/EventsManager.ts | TypeScript |
ClassDeclaration |
export class CreateNoteDto {
@ApiProperty()
title: string;
@ApiProperty()
content: string;
} | cristiandev19/nest-investigation | src/modules/note/dtos/create-note.dto.ts | TypeScript |
ClassDeclaration |
@Pipe({
name: 'dateCount'
})
export class DateCountPipe implements PipeTransform {
transform(value: any): any {
let today:Date = new Date();
let todayWithoutNoTime:any = new Date(today.getFullYear(), today.getMonth(), today.getDate())
var lastSeconds = +todayWithoutNoTime - +new Date(value)
var da... | Nyagahisaac/Tracker | src/app/date-count.pipe.ts | TypeScript |
MethodDeclaration |
transform(value: any): any {
let today:Date = new Date();
let todayWithoutNoTime:any = new Date(today.getFullYear(), today.getMonth(), today.getDate())
var lastSeconds = +todayWithoutNoTime - +new Date(value)
var daysAgo = Math.floor((lastSeconds/360000)/24)
return daysAgo + "days ago";
} | Nyagahisaac/Tracker | src/app/date-count.pipe.ts | TypeScript |
FunctionDeclaration | /**
* @param state The Redux state for masthead.
* @returns The converted version of the given state, tailored for `<dds-masthead-container>`.
*/
export function mapStateToProps(state: MastheadContainerState): MastheadContainerStateProps {
const { localeAPI, translateAPI, profileAPI } = state;
const { language }... | Embodimentgeniuslm3/carbon-for-ibm-dotcom | packages/web-components/src/components/masthead/masthead-container.ts | TypeScript |
FunctionDeclaration | /**
* @param dispatch The Redux `dispatch()` API.
* @returns The methods in `<dds-masthead-container>` to dispatch Redux actions.
*/
export function mapDispatchToProps(dispatch: Dispatch<LocaleAPIActions | TranslateAPIActions | ProfileAPIActions>) {
return bindActionCreators<MastheadContainerActions, ActionCreator... | Embodimentgeniuslm3/carbon-for-ibm-dotcom | packages/web-components/src/components/masthead/masthead-container.ts | TypeScript |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.