(config: PartialConfig)
| 19 | } |
| 20 | |
| 21 | function getNamespaceString(config: PartialConfig): string | null { |
| 22 | if (config.storage.namespace === true) { |
| 23 | return automaticNamespace(config); |
| 24 | } else if (config.storage.namespace === false) { |
| 25 | return null; |
| 26 | } else { |
| 27 | return config.storage.namespace; |
| 28 | } |
| 29 | } |
| 30 | |
| 31 | export function createSiteStorage(config: PartialConfig): SiteStorage { |
| 32 | const {type} = config.storage; |
no test coverage detected
searching dependent graphs…