forked from cardstack/boxel
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathin-this-file.gts
61 lines (46 loc) · 1.5 KB
/
in-this-file.gts
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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
import {
contains,
field,
CardDef,
FieldDef,
} from 'https://cardstack.com/base/card-api';
import StringCard from 'https://cardstack.com/base/string';
export const exportedVar = 'exported var';
// @ts-ignore
// eslint-disable-next-line @typescript-eslint/no-unused-vars
const localVar = 'local var';
class LocalClass
{}
export class ExportedClass {}
export class ExportedClassInheritLocalClass extends LocalClass {}
// @ts-ignore
// eslint-disable-next-line @typescript-eslint/no-unused-vars
function localFunction() {}
export function exportedFunction() {}
export { LocalClass as AClassWithExportName };
class LocalCard extends CardDef {
static displayName = 'local card';
}
export class ExportedCard extends CardDef {
static displayName = 'exported card';
@field someString = contains(StringCard);
}
export class ExportedCardInheritLocalCard extends LocalCard {
static displayName = 'exported card extends local card';
}
class LocalField extends FieldDef {
static displayName = 'local field';
}
export class ExportedField extends FieldDef {
static displayName = 'exported field';
@field someString = contains(StringCard);
}
export class ExportedFieldInheritLocalField extends LocalField {
static displayName = 'exported field extends local field';
}
// @ts-ignore
// eslint-disable-next-line @typescript-eslint/no-unused-vars
class LocalCardWithoutExportRelationship extends CardDef {
static displayName = 'local card but without export relationship';
}
export default class DefaultClass {}