Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ datasources/00_National_Data_Sets.json
/error.log
/output.log
privateserverconfig.json
ts-out/
wwwroot/privateconfig.json
deploy/packages/
deploy/work/
Expand Down
3 changes: 2 additions & 1 deletion .prettierignore
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ datasources/00_National_Data_Sets.json
/error.log
/output.log
privateserverconfig.json
ts-out/
wwwroot/privateconfig.json
deploy/packages/
deploy/work/
Expand All @@ -43,4 +44,4 @@ wwwroot/*.html


ckanext-cesiumpreview
deploy/helm/terria/charts/terriamap/templates/
deploy/helm/terria/charts/terriamap/templates/
1 change: 1 addition & 0 deletions lib/ThirdParty/global.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
declare module "*.html";
24 changes: 24 additions & 0 deletions lib/ThirdParty/styled-components/index.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
// Copy of lib/ThirdParty/styled-components from terriajs, but with updated
// import path for terriaTheme.

// Pull in the css prop type addition to react attributes
/// <reference types="styled-components/cssprop" />

// import your custom theme
import { CSSProp } from "styled-components";
import { terriaTheme } from "terriajs/lib/ReactViews/StandardUserInterface/StandardTheme";

type Theme = typeof terriaTheme;

declare module "styled-components" {
export interface DefaultTheme extends Theme {}
}

// See https://github.com/styled-components/styled-components/issues/2528
// .css isn't included in @types/styled-components because it has to be enabled
// through a babel plugin or macro
declare module "react" {
interface Attributes {
css?: CSSProp;
}
}
19 changes: 18 additions & 1 deletion tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,3 +1,20 @@
{
"extends": "terriajs/tsconfig.json"
"extends": "./node_modules/terriajs/tsconfig",
"compilerOptions": {
"outDir": "ts-out",
"maxNodeModuleJsDepth": 5,
"typeRoots": [
"./node_modules/",
"./node_modules/@types/",
"./node_modules/terriajs/lib/ThirdParty",
"../node_modules/",
"../node_modules/@types/",
"../../node_modules/",
"../../node_modules/@types/",
"../../../node_modules/",
"../../../node_modules/@types/"
],
"types": ["global", "terriajs-cesium", "terriajs-cesium-extra"]
},
"include": ["./lib/**/*", "./buildprocess/**/*"]
}