context keys: parser: fix new parser's return type

This commit is contained in:
Ulugbek Abdullaev 2023-02-20 15:07:40 +01:00
parent 08c67e4576
commit f9f60673fd

View file

@ -129,7 +129,7 @@ export abstract class ContextKeyExpr {
/**
* Warning: experimental; the API might change.
*/
public static deserializeOrErrorNew(serialized: string | null | undefined): { type: 'ok'; expr: ContextKeyExpr } | { type: 'error'; readonly lexingErrors: string[]; readonly parsingErrors: readonly string[] } {
public static deserializeOrErrorNew(serialized: string | null | undefined): { type: 'ok'; expr: ContextKeyExpression } | { type: 'error'; readonly lexingErrors: string[]; readonly parsingErrors: readonly string[] } {
if (!serialized) {
return { type: 'error', lexingErrors: [], parsingErrors: [] };
}