Skip to content

Commit

Permalink
Fix NVRMesh.layers type
Browse files Browse the repository at this point in the history
  • Loading branch information
jennydaman committed Feb 7, 2024
1 parent 0e284a1 commit 7712dad
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/model.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ type NVRMeshLayer = {
/**
* A mesh (e.g. white-matter surface) in Niivue.
*/
type NVRMesh = { url: string } & Pick<
type NVRMesh = { url: string; layers: NVRMeshLayer[] } & Pick<
Partial<NVMeshFromUrlOptions>,
"name" | "opacity" | "visible" | "rgba255" | "colorbarVisible"
>;
Expand All @@ -48,7 +48,8 @@ type LoadableVolumeOptions = Pick<
/**
* Options of a volume which are directly compatible with `NVImage`.
*/
type ImageOptions = LoadableVolumeOptions & Pick<Partial<NVImage>, "modulateAlpha">;
type ImageOptions = LoadableVolumeOptions &
Pick<Partial<NVImage>, "modulateAlpha">;

/**
* Special options of a volume which are supported handled differently in `niivue-react` and Niivue,
Expand Down

0 comments on commit 7712dad

Please sign in to comment.