Skip to content

TypeScript API / @laikacms/vite-plugin / listKeys

Function: listKeys() ​

ts
function listKeys(
   repos, 
   namespace, 
   folder?, 
   depth?
): Promise<string[]>;

List the keys under folder for a namespace, up to depth levels deep. Used to expand import.meta.glob('laika:…') patterns against the repository.

Parameters ​

ParameterType
reposLaikaRepositories
namespaceNamespace
folder?string
depth?number

Returns ​

Promise<string[]>

Released under the MIT License.