Skip to content

For some reason ts expect error doesn't work for unknowntype #43

@github-actions

Description

@github-actions

For some reason ts expect error doesn't work for unknowntype

https://github.com/JournalOfTrialAndError/JOTE/blob/4b292b06dc554e7a6e4e5bdce792f5a57d0bef81/libs/xast/xast-util-select/src/lib/any.ts#L20

import { test } from './test'

const type = zwitch('type', {
  /**
   * TODO: For some reason ts expect error doesn't work for unknowntype
   */
  unknown: unknownType as any ,
  invalid: invalidType,
  handlers: { selectors, ruleSet, rule } as any,
})

/**

a6618edceb94af2128c9eb14b758d6caafffb2a9

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions