Sanity Library Reference Docs
    Preparing search index...

    Type Alias AutocompleteStringBeta

    AutocompleteString: string & {}

    Enhances VSCode autocomplete by using a distinct type for strings.

    AllowOtherStrings is defined as string & {}, an intersection that behaves like string but is treated differently by TypeScript's type system for internal processing. This helps in improving the specificity and relevance of autocomplete suggestions by potentially prioritizing IntrinsicTypeName over general string inputs, addressing issues where string type suggestions might overshadow more useful specific literals.