Commit adbf5b38 authored by Emmanuel Raviart's avatar Emmanuel Raviart
Browse files

Use 'import type' instead of 'import'.

parent 594de816
<script lang="ts">
import { codeBookElementToString } from "$lib/accessors"
import {
codeBookElementToString,
iterVariableCategories,
} from "$lib/accessors"
import SimpleJsonTree from "./fields/SimpleJsonTree.svelte"
import SimpleOptionalText from "./fields/SimpleOptionalText.svelte"
import type { Var } from "$lib/raw_types/codebooks"
......
......@@ -20,9 +20,9 @@ import {
iterCodeBookVariables,
getCodeBookYear,
} from "$lib/accessors"
import type { Organization } from "$lib/data"
import {
Language,
Organization,
postgreSqlConfigurationNameByLanguage,
StudyOrganizationRelation,
StudyTermRelation,
......
......@@ -2,17 +2,19 @@ import dedent from "dedent-js"
import { WebSocketServer } from "ws"
import { validateWebSocketsFacetsQuery } from "$lib/auditors/queries"
import type {
Organization,
OrganizationWithCount,
ValidSearchQuerySharedSubset,
ValidWebSocketsFacetsQuery,
} from "$lib/data"
import {
allStudyOrganizationRelations,
allStudyTermRelations,
Facet,
Organization,
OrganizationWithCount,
postgreSqlConfigurationNameByLanguage,
StudyOrganizationRelation,
StudyTermRelation,
ValidSearchQuerySharedSubset,
ValidWebSocketsFacetsQuery,
} from "$lib/data"
import config from "$lib/server/config"
import {
......
......@@ -3,13 +3,8 @@ import type { JSONValue } from "@sveltejs/kit/types/helper"
import dedent from "dedent-js"
import { validateApiSearchQuery } from "$lib/auditors/queries"
import {
Follow,
postgreSqlConfigurationNameByLanguage,
Series,
SeriesSearchResult,
ValidApiSearchQuery,
} from "$lib/data"
import type { Series, SeriesSearchResult, ValidApiSearchQuery } from "$lib/data"
import { Follow, postgreSqlConfigurationNameByLanguage } from "$lib/data"
import {
addSeriesSpecificSqlClauses,
DataProducer,
......
......@@ -3,12 +3,8 @@ import type { JSONValue } from "@sveltejs/kit/types/helper"
import dedent from "dedent-js"
import { validateApiSearchQuery } from "$lib/auditors/queries"
import {
postgreSqlConfigurationNameByLanguage,
Study,
StudySearchResult,
ValidApiSearchQuery,
} from "$lib/data"
import type { Study, StudySearchResult, ValidApiSearchQuery } from "$lib/data"
import { postgreSqlConfigurationNameByLanguage } from "$lib/data"
import {
addStudiesSpecificSqlClauses,
DataProducer,
......
......@@ -3,12 +3,12 @@ import type { JSONValue } from "@sveltejs/kit/types/helper"
import dedent from "dedent-js"
import { validateApiSearchQuery } from "$lib/auditors/queries"
import {
postgreSqlConfigurationNameByLanguage,
import type {
ValidApiSearchQuery,
Variable,
VariableSearchResult,
} from "$lib/data"
import { postgreSqlConfigurationNameByLanguage } from "$lib/data"
import {
addVariablesSpecificSqlClauses,
DataProducer,
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment