Skip to content

TypeScript API / @laikacms/vite-plugin / parseLaikaId

Function: parseLaikaId() ​

ts
function parseLaikaId(source): LaikaId;

Split a laika:<namespace>/<key> (or virtual) string into namespace + key. Throws on a malformed id.

Parameters ​

ParameterType
sourcestring

Returns ​

LaikaId

Released under the MIT License.