23
23
* ```
24
24
*
25
25
* @module
26
+ * @deprecated Use {@linkcode rawString}
26
27
*/
27
28
import type { Context , Denops , Dispatcher , Meta } from "@denops/core" ;
28
29
import { isArray } from "@core/unknownutil/is/array" ;
@@ -40,10 +41,16 @@ import { isUndefined } from "@core/unknownutil/is/undefined";
40
41
import { ulid } from "@std/ulid" ;
41
42
import { execute } from "./execute.ts" ;
42
43
44
+ // Note: Imports only types and is used only in tsdoc.
45
+ // deno-lint-ignore no-unused-vars
46
+ import type { isRawString , RawString , rawString } from "../eval/string.ts" ;
47
+
43
48
const EXPR_STRING_MARK = "__denops_expr_string" ;
44
49
45
50
/**
46
51
* String that marked as Vim's string constant format.
52
+ *
53
+ * @deprecated Use {@linkcode rawString} and {@linkcode RawString}
47
54
*/
48
55
export type ExprString = string & {
49
56
/**
@@ -95,6 +102,7 @@ async function ensurePrerequisites(denops: Denops): Promise<string> {
95
102
* ```
96
103
*
97
104
* @see useExprString for usage
105
+ * @deprecated Use {@linkcode rawString}
98
106
*/
99
107
export function exprQuote (
100
108
template : TemplateStringsArray ,
@@ -119,6 +127,8 @@ const isInstanceOfString = isInstanceOf(String);
119
127
* console.log(isExprString(exprQuote`foo`)); // outputs: true
120
128
* console.log(isExprString("foo")); // outputs: false
121
129
* ```
130
+ *
131
+ * @deprecated Use {@linkcode rawString} and {@linkcode isRawString}
122
132
*/
123
133
export function isExprString ( x : unknown ) : x is ExprString {
124
134
return isObjectOf ( {
0 commit comments