@lens-protocol/shared-kernel
Advanced tools
Comparing version 0.11.0-alpha.3 to 0.11.0-alpha.4
/** | ||
* An EVM address | ||
*/ | ||
import { Brand } from '../ts-helpers/types'; | ||
export type EvmAddress = string; | ||
/** | ||
* An encoded data payload. | ||
*/ | ||
export type Data = Brand<string, 'Data'>; | ||
/** | ||
* A URL | ||
* @deprecated Use `URL` or `URI` instead. | ||
*/ | ||
export type Url = string; | ||
/** | ||
* A Uniform Resource Locator. | ||
* | ||
* A URL is a specific type of URI that, in addition to identifying a web resource, | ||
* specifies the means of acting upon or obtaining the representation of the resource, | ||
* i.e. specifying both its primary access mechanism and network location. | ||
*/ | ||
export type URL = Brand<string, 'URL'>; | ||
/** | ||
* A Uniform Resource Identifier. | ||
* | ||
* It could be a URL pointing to a specific resource, | ||
* an IPFS URI (e.g. ipfs://Qm...), or an Arweave URI (e.g. ar://Qm...). | ||
*/ | ||
export type URI = Brand<string, 'URI'>; |
@@ -136,1 +136,12 @@ export type AnyFunction = (...args: any[]) => any; | ||
}; | ||
/** | ||
* @internal | ||
*/ | ||
type BrandOf<A> = [A] extends [Brand<unknown, infer R>] ? R : never; | ||
/** | ||
* @internal | ||
*/ | ||
export type RecursiveUnbrand<T> = T extends Brand<infer R, BrandOf<T>> ? R : { | ||
[K in keyof T]: RecursiveUnbrand<T[K]>; | ||
}; | ||
export {}; |
{ | ||
"name": "@lens-protocol/shared-kernel", | ||
"version": "0.11.0-alpha.3", | ||
"version": "0.11.0-alpha.4", | ||
"description": "Shared kernel", | ||
@@ -5,0 +5,0 @@ "repository": { |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
177616
5393