Skip to content

Commit

Permalink
update exports
Browse files Browse the repository at this point in the history
  • Loading branch information
ignatiusmb committed Sep 24, 2024
1 parent b34d608 commit c01a6e6
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
4 changes: 4 additions & 0 deletions workspace/mauss/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,10 @@
"types": "./index.d.ts",
"default": "./src/web/index.js"
},
"./yaml": {
"types": "./index.d.ts",
"default": "./src/yaml/index.js"
},
"./typings": {
"types": "./index.d.ts"
},
Expand Down
3 changes: 1 addition & 2 deletions workspace/mauss/src/yaml/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,7 @@ export function read(raw: string, memo: Record<string, any> = {}): FrontMatter[s
switch (cleaned[0]) {
case '-': {
const sequence = cleaned.split('-').filter((v) => v);
type Possibly = Primitives & FrontMatter; // what..?
return sequence.map((v) => read(indent(v).trim()) as Possibly);
return sequence.map((v) => read(indent(v).trim()) as FrontMatter);
}
case '[': {
const pruned = cleaned.slice(1, -1);
Expand Down

0 comments on commit c01a6e6

Please sign in to comment.