Skip to content

Why doesnt TS-expect-error work reee #44

@github-actions

Description

@github-actions

Why doesnt TS-expect-error work reee

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

import { zwitch } from 'zwitch'

const handle = zwitch('operator', {
  /**
   * TODO: Why doesnt TS-expect-error work reee
   */
  //// @ts-expect-error: hush.
  unknown: unknownOperator as  any,
  //// @ts-expect-error: hush.
  invalid: exists as any,
  handlers: {
    '=': exact as any,
    '~=': spaceSeparatedList as any,
    '|=': exactOrPrefix as any,
    '^=': begins as any,
    '$=': ends as any,
    '*=': contains as any,
  },
})

80bcb1c0f9e4f44b5784cfac8fa59404320506ca

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