@coveo/bueno
Advanced tools
Comparing version 0.1.0-alpha.49 to 0.1.0-alpha.50
@@ -6,2 +6,10 @@ # Change Log | ||
# [0.1.0-alpha.50](https://bitbucket.org/coveord/ui-kit/compare/v0.1.0-alpha.49...v0.1.0-alpha.50) (2020-11-13) | ||
**Note:** Version bump only for package @coveo/bueno | ||
# [0.1.0-alpha.49](https://bitbucket.org/coveord/ui-kit/compare/v0.1.0-alpha.48...v0.1.0-alpha.49) (2020-11-12) | ||
@@ -8,0 +16,0 @@ |
import { ValueConfig } from './value'; | ||
import { SchemaValue } from '../schema'; | ||
interface StringValueConfig extends ValueConfig<string> { | ||
interface StringValueConfig<T extends string> extends ValueConfig<T> { | ||
emptyAllowed?: boolean; | ||
url?: boolean; | ||
constrainTo?: string[]; | ||
constrainTo?: readonly T[]; | ||
} | ||
export declare class StringValue implements SchemaValue<string> { | ||
export declare class StringValue<T extends string = string> implements SchemaValue<string> { | ||
private value; | ||
private config; | ||
constructor(config?: StringValueConfig); | ||
validate(value: string): string | null; | ||
get default(): string | undefined; | ||
constructor(config?: StringValueConfig<T>); | ||
validate(value: T): string | null; | ||
get default(): T | undefined; | ||
get required(): boolean; | ||
@@ -15,0 +15,0 @@ } |
import { ValueConfig } from './value'; | ||
import { SchemaValue } from '../schema'; | ||
interface StringValueConfig extends ValueConfig<string> { | ||
interface StringValueConfig<T extends string> extends ValueConfig<T> { | ||
emptyAllowed?: boolean; | ||
url?: boolean; | ||
constrainTo?: string[]; | ||
constrainTo?: readonly T[]; | ||
} | ||
export declare class StringValue implements SchemaValue<string> { | ||
export declare class StringValue<T extends string = string> implements SchemaValue<string> { | ||
private value; | ||
private config; | ||
constructor(config?: StringValueConfig); | ||
validate(value: string): string | null; | ||
get default(): string | undefined; | ||
constructor(config?: StringValueConfig<T>); | ||
validate(value: T): string | null; | ||
get default(): T | undefined; | ||
get required(): boolean; | ||
@@ -15,0 +15,0 @@ } |
@@ -12,3 +12,3 @@ { | ||
"license": "Apache-2.0", | ||
"version": "0.1.0-alpha.49", | ||
"version": "0.1.0-alpha.50", | ||
"files": [ | ||
@@ -15,0 +15,0 @@ "dist/" |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
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
94478