mirror of
https://activitypub.software/TransFem-org/Sharkey.git
synced 2024-12-14 01:50:45 +01:00
Fix type declaretion
This commit is contained in:
parent
b97f788d71
commit
df54da9510
1 changed files with 6 additions and 4 deletions
10
src/@types/nested-property.d.ts
vendored
10
src/@types/nested-property.d.ts
vendored
|
@ -1,3 +1,5 @@
|
|||
type Obj = { [key: string]: any };
|
||||
|
||||
declare module 'nested-property' {
|
||||
interface IHasNestedPropertyOptions {
|
||||
own?: boolean;
|
||||
|
@ -9,11 +11,11 @@ declare module 'nested-property' {
|
|||
|
||||
export function set<T>(object: T, property: string, value: any): T;
|
||||
|
||||
export function get(object: object, property: string): any;
|
||||
export function get(object: Obj, property: string): any;
|
||||
|
||||
export function has(object: object, property: string, options?: IHasNestedPropertyOptions): boolean;
|
||||
export function has(object: Obj, property: string, options?: IHasNestedPropertyOptions): boolean;
|
||||
|
||||
export function hasOwn(object: object, property: string, options?: IHasNestedPropertyOptions): boolean;
|
||||
export function hasOwn(object: Obj, property: string, options?: IHasNestedPropertyOptions): boolean;
|
||||
|
||||
export function isIn(object: object, property: string, objectInPath: object, options?: IIsInNestedPropertyOptions): boolean;
|
||||
export function isIn(object: Obj, property: string, objectInPath: Obj, options?: IIsInNestedPropertyOptions): boolean;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue