Skip to content

Commit

Permalink
chore(IPYNB): Typings
Browse files Browse the repository at this point in the history
  • Loading branch information
nokome committed Jun 14, 2020
1 parent b852e9c commit ee1eb3d
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/codecs/ipynb/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -258,7 +258,10 @@ async function decodeMetadata(
meta: { [key: string]: unknown }
}> {
// Extract handled properties
const { title = 'Untitled', authors = [], ...rest } = metadata
const { title = 'Untitled', authors = [], ...rest } = metadata as {
title: string
authors: []
}

// Decode authors to `Person` nodes
const people = authors.map(
Expand Down

0 comments on commit ee1eb3d

Please sign in to comment.