Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/rambda/files/index.d.ts>propIs

Faster and smaller alternative to Ramda
Go to Latest
function propIs
import { propIs } from "https://deno.land/x/rambda@v8.6.0/files/index.d.ts";

Type Parameters

C extends AnyFunction
K extends keyof any

Parameters

type: C
name: K
obj: any

Returns

obj is Record<K, ReturnType<C>>

Type Parameters

C extends AnyConstructor
K extends keyof any

Parameters

type: C
name: K
obj: any

Returns

obj is Record<K, InstanceType<C>>

Type Parameters

C extends AnyFunction
K extends keyof any

Parameters

type: C
name: K

Returns

(obj: any) => obj is Record<K, ReturnType<C>>

Type Parameters

C extends AnyConstructor
K extends keyof any

Parameters

type: C
name: K

Returns

(obj: any) => obj is Record<K, InstanceType<C>>

Type Parameters

C extends AnyFunction

Returns

{ <K extends keyof any>(name: K, obj: any): obj is Record<K, ReturnType<C>>; <K extends keyof any>(name: K): (obj: any) => obj is Record<K, ReturnType<C>>; }