Why Gemfury? Push, build, and install  RubyGems npm packages Python packages Maven artifacts PHP packages Go Modules Debian packages RPM packages NuGet packages

Repository URL to install this package:

Details    
@skava/modules / ___dist / identifier / index.d.ts
Size: Mime:
import React from 'react'
import { Serializable, ObjOrBoolean, SerializableObj } from 'typings/generic'
import { Primitive } from 'modules/chain-able'
import { OneThing } from '../../src/state/__product/OneThing'

type int = number
export declare function toReactInstanceName(component: React.Component): string
export declare function toReactInstanceName(component: React.Component): string

// export declare function decorateWithIdentifier(component: React.Component): React.Component<component>

export declare function toReactInstanceName(component: React.Component): string

export declare function toIdentifier(component?: React.Component | any, hash?: string): string

export declare function toIdentity(...args: any[]): string

export declare function fliphash(identifier: string): int

export declare function toIdentityHash(small: Serializable, ignoreReference: ObjOrBoolean): string

export declare function identityMagician(anything: any): string

export declare function toThingIdentifier(obj: OneThing): string
export declare function uuid(): string
export declare function stateTreeIdentifier(obj: SerializableObj, previous?: SerializableObj): string


// export type IDENTIFIER_REFERENCE_REGISTRY = WeakMap<any, string>
// export type IDENTIFIER_STRING_REGISTRY = Map<string, string>
export declare type identifierMap = WeakMap<SerializableObj, string>
export declare type identifierRegistry = Map<string, SerializableObj>
export type IDENTIFIER_REGISTRY = identifierRegistry
export type IDENTIFIER_STRING_REGISTRY = identifierMap