Skip to content

Commit

Permalink
fix type for isScaleChannel
Browse files Browse the repository at this point in the history
  • Loading branch information
kanitw committed May 15, 2024
1 parent 135874f commit f70cf9a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/channel.ts
Original file line number Diff line number Diff line change
Expand Up @@ -480,7 +480,7 @@ const SCALE_CHANNEL_INDEX = {
export const SCALE_CHANNELS = keys(SCALE_CHANNEL_INDEX);
export type ScaleChannel = (typeof SCALE_CHANNELS)[number];

export function isScaleChannel(channel: Channel | ExtendedChannel): channel is ScaleChannel {
export function isScaleChannel(channel: ExtendedChannel): channel is ScaleChannel {
return !!SCALE_CHANNEL_INDEX[channel];
}

Expand Down

0 comments on commit f70cf9a

Please sign in to comment.