{"version":3,"sources":["../../../../src/types/options/methods-options.ts"],"sourcesContent":["import type { Factory, GetSetFactory, RawCommonOptions } from '../main';\n\n/**\n * Options accepted by the `getOrSet` method\n */\nexport type GetOrSetOptions = Pick<\n  RawCommonOptions,\n  'earlyExpiration' | 'gracePeriod' | 'suppressL2Errors' | 'lockTimeout' | 'ttl' | 'timeouts'\n>\n\n/**\n * Options accepted by the `getOrSet` method when passing an object\n */\nexport type GetOrSetPojoOptions<T> = { key: string; factory: GetSetFactory<T> } & GetOrSetOptions\n\n/**\n * Options accepted by the `getOrSetForever` method\n */\nexport type GetOrSetForeverOptions = Pick<\n  RawCommonOptions,\n  'earlyExpiration' | 'gracePeriod' | 'suppressL2Errors' | 'lockTimeout' | 'timeouts'\n>\n\n/**\n * Options accepted by the `getOrSetForever` method when passing an object\n */\nexport type GetOrSetForeverPojoOptions<T> = {\n  key: string\n  factory: GetSetFactory<T>\n} & GetOrSetForeverOptions\n\n/**\n * Options accepted by the `set` method\n */\nexport type SetOptions = GetOrSetOptions\n\n/*\n * Options accepted by the `set` method when passing an object\n */\nexport type SetPojoOptions = { key: string; value: any } & SetOptions\n\n/**\n * Options accepted by the `get` method\n */\nexport type GetOptions = Pick<\n  RawCommonOptions,\n  'earlyExpiration' | 'gracePeriod' | 'suppressL2Errors'\n>\n\n/**\n * Options accepted by the `get` method when passing an object\n */\nexport type GetPojoOptions<T> = { key: string; defaultValue?: Factory<T> } & GetOptions\n\n/**\n * Options accepted by the `delete` method\n */\nexport type DeleteOptions = Pick<RawCommonOptions, 'suppressL2Errors'>\n\n/**\n * Options accepted by the `delete` method when passing an object\n */\nexport type DeletePojoOptions = { key: string } & DeleteOptions\nexport type DeleteManyPojoOptions = { keys: string[] } & DeleteOptions\n\n/**\n * Options accepted by the `has` method\n */\nexport type HasOptions = Pick<RawCommonOptions, 'suppressL2Errors'>\n\n/**\n * Options accepted by the `has` method when passing an object\n */\nexport type HasPojoOptions = { key: string } & HasOptions\n\n/**\n * Options accepted by the `clear` method\n */\nexport type ClearOptions = Pick<RawCommonOptions, 'suppressL2Errors'>\n"],"mappings":";;;;;;;;;;;;;;;AAAA;AAAA;","names":[]}