Skip to content

Cannot use namespace 'xs' as a value.ts(2708) #32

Description

@sjordan1975

Example copied from the MarkLogic docs:
https://docs.marklogic.com/cts.elementWordQuery

cts.search(
    cts.elementWordQuery(
      xs.QName("function"),
      "MarkLogic Corporation"));

  => .. relevance-ordered sequence of documents
  with elements with QName 'function'
  and text content containing the phrase 'MarkLogic
  Corporation'.

Not sure why I'm getting TS error: Cannot use namespace 'xs' as a value.ts(2708)

(See screenshot)

xs

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions