Skip to content
This repository was archived by the owner on Jan 5, 2023. It is now read-only.

Commit d944ff7

Browse files
fix: πŸ› Add ts decleration
1 parent 7e88362 commit d944ff7

File tree

5 files changed

+6
-4
lines changed

5 files changed

+6
-4
lines changed

β€Žpackages/other-test-module/package.jsonβ€Ž

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,8 @@
1818
"url": "git+https://github.com/navikt/fo-frontend-moduler.git"
1919
},
2020
"scripts": {
21-
"test": "echo \"Error: run tests from root\" && exit 1"
21+
"test": "echo \"Error: run tests from root\" && exit 1",
22+
"tsc": "tsc"
2223
},
2324
"bugs": {
2425
"url": "https://github.com/navikt/fo-frontend-moduler/issues"

β€Žpackages/other-test-module/src/other-test-module.tsβ€Ž

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
export class Stuff(){
1+
export class Stuff{
22
stuff(){
33
return "hhahas"
44
}

β€Žpackages/other-test-module/tsconfig.jsonβ€Ž

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"extends": "../../tsconfig.json",
33
"compilerOptions": {
4-
"outDir": "./lib"
4+
"outDir": "./lib",
55
},
66
"include": [
77
"./src"

β€Žpackages/test-module/src/test-module.tsβ€Ž

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11

22

33
export function Halla(){
4-
return "Halla12";
4+
return "Halla";
55
};
66

77

β€Žtsconfig.jsonβ€Ž

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
"experimentalDecorators": true,
1010
"target": "es6",
1111
"sourceMap": true,
12+
"declaration": true,
1213
"lib": [
1314
"es6"
1415
]

0 commit comments

Comments
Β (0)