File: completionsWithStringReplacementMode1.ts

package info (click to toggle)
node-typescript 5.1.6%2Bds1-1
  • links: PTS, VCS
  • area: main
  • in suites: experimental
  • size: 492,516 kB
  • sloc: javascript: 2,078,951; makefile: 6; sh: 1
file content (44 lines) | stat: -rw-r--r-- 2,457 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
/// <reference path="fourslash.ts" />

//// interface TFunction {
////     (_: 'login.title', __?: {}): string;
////     (_: 'login.description', __?: {}): string;
////     (_: 'login.sendEmailAgree', __?: {}): string;
////     (_: 'login.termsOfUse', __?: {}): string;
////     (_: 'login.privacyPolicy', __?: {}): string;
////     (_: 'login.sendEmailButton', __?: {}): string;
////     (_: 'login.emailInputPlaceholder', __?: {}): string;
////     (_: 'login.errorWrongEmailTitle', __?: {}): string;
////     (_: 'login.errorWrongEmailDescription', __?: {}): string;
////     (_: 'login.errorGeneralEmailTitle', __?: {}): string;
////     (_: 'login.errorGeneralEmailDescription', __?: {}): string;
////     (_: 'login.loginErrorTitle', __?: {}): string;
////     (_: 'login.loginErrorDescription', __?: {}): string;
////     (_: 'login.openEmailAppErrorTitle', __?: {}): string;
////     (_: 'login.openEmailAppErrorDescription', __?: {}): string;
////     (_: 'login.openEmailAppErrorConfirm', __?: {}): string;
//// }
//// const f: TFunction = (() => {}) as any;
//// f('[|login./**/|]')

verify.completions({
    marker: "",
    exact: [
        { name: "login.title", replacementSpan: test.ranges()[0] },
        { name: "login.description", replacementSpan: test.ranges()[0] },
        { name: "login.sendEmailAgree", replacementSpan: test.ranges()[0] },
        { name: "login.termsOfUse", replacementSpan: test.ranges()[0] },
        { name: "login.privacyPolicy", replacementSpan: test.ranges()[0] },
        { name: "login.sendEmailButton", replacementSpan: test.ranges()[0] },
        { name: "login.emailInputPlaceholder", replacementSpan: test.ranges()[0] },
        { name: "login.errorWrongEmailTitle", replacementSpan: test.ranges()[0] },
        { name: "login.errorWrongEmailDescription", replacementSpan: test.ranges()[0] },
        { name: "login.errorGeneralEmailTitle", replacementSpan: test.ranges()[0] },
        { name: "login.errorGeneralEmailDescription", replacementSpan: test.ranges()[0] },
        { name: "login.loginErrorTitle", replacementSpan: test.ranges()[0] },
        { name: "login.loginErrorDescription", replacementSpan: test.ranges()[0] },
        { name: "login.openEmailAppErrorTitle", replacementSpan: test.ranges()[0] },
        { name: "login.openEmailAppErrorDescription", replacementSpan: test.ranges()[0] },
        { name: "login.openEmailAppErrorConfirm", replacementSpan: test.ranges()[0] },
    ]
});