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
| Parameter | Type |
|---|---|
repos | LaikaRepositories |
namespace | Namespace |
folder? | string |
depth? | number |
Returns
Promise<string[]>