summaryrefslogtreecommitdiff
path: root/tests/specs/npm/types_general/main.ts
blob: ae420f6d69bff4b618814f13e5f32c83615cb768 (plain)
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
import type { Fizzbuzz } from "npm:@denotest/types";
import type { SomeInterface } from "npm:@denotest/types_imported";
import type { Foobar as FooInterface } from "npm:@denotest/types_imported/subpath";
import { getClient } from "npm:@denotest/types-exports-subpaths/client";
import { entryImport } from "npm:@denotest/types-exports-subpaths/entry-import";
import { entryA } from "npm:@denotest/types-exports-subpaths/entry-a";
import { entryTypes } from "npm:@denotest/types-exports-subpaths/entry-types-last-no-declaration-before";

const foobar: FooInterface = {
  foo: "foo",
  bar: 1,
};

const i: SomeInterface = {
  prop: 1,
  prop2: "asdf",
};

const fizzbuzz: Fizzbuzz = {
  fizz: 1,
  buzz: 2,
};

const valueA: "test1" = getClient();
const valueB: "test2" = entryImport();
const valueC: "test3" = entryA();
const valueD: "test4" = entryTypes();