@forge/kvs
1.6.5-experimental-04cc2b91.6.6-next.0
out/interfaces/types.d.ts~
out/interfaces/types.d.tsModified+8−8
Index: package/out/interfaces/types.d.ts
===================================================================
--- package/out/interfaces/types.d.ts
+++ package/out/interfaces/types.d.ts
@@ -8,10 +8,10 @@
}
export interface QueryOptions {
metadataFields?: MetadataField[];
}
-export type TtlUnit = 'SECONDS' | 'MINUTES' | 'HOURS' | 'DAYS';
-export type Ttl = {
+export declare type TtlUnit = 'SECONDS' | 'MINUTES' | 'HOURS' | 'DAYS';
+export declare type Ttl = {
value: number;
unit: TtlUnit;
};
export interface SetOptions {
@@ -32,9 +32,9 @@
returnValue: 'PREVIOUS' | 'LATEST';
returnMetadataFields?: MetadataField[];
}
export declare function isOverrideAndReturnOptions(options?: ExtendedSetOptions): options is OverrideAndReturnSetOptions;
-export type ExtendedSetOptions = PolicySetOptions | OverrideAndReturnSetOptions;
+export declare type ExtendedSetOptions = PolicySetOptions | OverrideAndReturnSetOptions;
export interface SetResult<T> {
key: string;
value: T;
createdAt?: number;
@@ -49,13 +49,13 @@
export interface ListResult<T> {
results: Result<T>[];
nextCursor?: string;
}
-export type BatchItemSuccess = {
+export declare type BatchItemSuccess = {
key: string;
entityName?: string;
};
-export type BatchItemError = {
+export declare type BatchItemError = {
key: string;
entityName?: string;
error: {
code: string;
@@ -81,10 +81,10 @@
export declare enum Sort {
ASC = "ASC",
DESC = "DESC"
}
-export type StringOrNumberOrBoolean = string | number | boolean;
-export type StringOrNumber = string | number;
+export declare type StringOrNumberOrBoolean = string | number | boolean;
+export declare type StringOrNumber = string | number;
export interface BetweenClause<T extends StringOrNumber> {
condition: 'BETWEEN';
values: [T, T];
}
@@ -131,6 +131,6 @@
export interface NotEqualToClause {
condition: 'NOT_EQUAL_TO';
values: [StringOrNumberOrBoolean];
}
-export type FilterOperator = 'or' | 'and';
+export declare type FilterOperator = 'or' | 'and';
//# sourceMappingURL=types.d.ts.map
\ No newline at end of file