@bbachain/spl-token-metadata
Version:
45 lines • 1.24 kB
TypeScript
import * as beet from '@bbachain/beet';
/**
* This type is used to derive the {@link CollectionDetails} type as well as the de/serializer.
* However don't refer to it in your code but use the {@link CollectionDetails} type instead.
*
* @category userTypes
* @category enums
* @private
*/
export type CollectionDetailsRecord = {
V1: {
size: beet.bignum;
};
};
/**
* Union type respresenting the CollectionDetails data enum defined in Rust.
*
* NOTE: that it includes a `__kind` property which allows to narrow types in
* switch/if statements.
* Additionally `isCollectionDetails*` type guards are exposed below to narrow to a specific variant.
*
* @category userTypes
* @category enums
*/
export type CollectionDetails = beet.DataEnumKeyAsKind<CollectionDetailsRecord>;
export declare const isCollectionDetailsV1: (x: CollectionDetails) => x is {
__kind: "V1";
} & Omit<{
size: beet.bignum;
}, "void"> & {
__kind: 'V1';
};
/**
* @category userTypes
*/
export declare const collectionDetailsBeet: beet.FixableBeet<{
__kind: "V1";
} & Omit<{
size: beet.bignum;
}, "void">, {
__kind: "V1";
} & Omit<{
size: beet.bignum;
}, "void">>;
//# sourceMappingURL=CollectionDetails.d.ts.map