( namespaces: string[], store: Map<string, any> = new Map(), metadata: Map<string, any> = new Map(), )
| 149 | } |
| 150 | |
| 151 | export const createKVNamespaces = ( |
| 152 | namespaces: string[], |
| 153 | store: Map<string, any> = new Map(), |
| 154 | metadata: Map<string, any> = new Map(), |
| 155 | ) => { |
| 156 | for (const namespace of namespaces) { |
| 157 | NewKVNamespace( |
| 158 | { |
| 159 | name: namespace, |
| 160 | }, |
| 161 | store, |
| 162 | metadata, |
| 163 | ) |
| 164 | } |
| 165 | } |
| 166 | |
| 167 | export const NewKVNamespace = ( |
| 168 | bindingConfig: { name: string }, |
nothing calls this directly
no test coverage detected