mirror of
https://github.com/hcengineering/platform.git
synced 2026-09-27 20:14:57 +02:00
Switch to typescript 5.8.3 (#9152)
Signed-off-by: Andrey Sobolev <haiodo@gmail.com>
This commit is contained in:
@@ -3,7 +3,7 @@ import { parseDocument } from 'htmlparser2'
|
||||
|
||||
import { NodeType } from './types'
|
||||
import { clean } from '../helpers'
|
||||
import { Cell } from './common'
|
||||
import { type Cell } from './common'
|
||||
|
||||
export abstract class Container {
|
||||
constructor (
|
||||
|
||||
@@ -1,10 +1,10 @@
|
||||
import { parseDocument } from 'htmlparser2'
|
||||
import { AnyNode, Document } from 'domhandler'
|
||||
import { type AnyNode, type Document } from 'domhandler'
|
||||
import { findAll } from 'domutils'
|
||||
|
||||
import { FileSpec, FileSpecType, TocFileSpec } from './types'
|
||||
import { type FileSpec, FileSpecType, type TocFileSpec } from './types'
|
||||
import { createMetadataExtractor } from './meta'
|
||||
import { ExtractedSection, TocSectionExtractor, extractSections } from './sections'
|
||||
import { type ExtractedSection, TocSectionExtractor, extractSections } from './sections'
|
||||
|
||||
/**
|
||||
* @public
|
||||
|
||||
@@ -1,18 +1,18 @@
|
||||
import { AnyNode, Document, Element, Text } from 'domhandler'
|
||||
import { type AnyNode, type Document, type Element, type Text } from 'domhandler'
|
||||
import { find } from 'domutils'
|
||||
import { ElementType } from 'htmlparser2'
|
||||
|
||||
import {
|
||||
DocMetadataSpec,
|
||||
type DocMetadataSpec,
|
||||
MetadataContainer,
|
||||
DocTableRowMetadata,
|
||||
DocMetaTagsMetadata,
|
||||
PageHeaderTableRowMetadata,
|
||||
MetadataTableCell
|
||||
type DocTableRowMetadata,
|
||||
type DocMetaTagsMetadata,
|
||||
type PageHeaderTableRowMetadata,
|
||||
type MetadataTableCell
|
||||
} from './types'
|
||||
import { ELEMENT_LIMIT } from './common'
|
||||
import { TableNodeExtractor } from './nodes'
|
||||
import { TableContainer } from './container'
|
||||
import { type TableContainer } from './container'
|
||||
|
||||
interface DocMetadataExtractor {
|
||||
extractName: (doc: Document) => string
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import { Document, Element, AnyNode as AnyDomNode, AnyNode } from 'domhandler'
|
||||
import { type Document, type Element, type AnyNode as AnyDomNode, type AnyNode } from 'domhandler'
|
||||
import { ElementType } from 'htmlparser2'
|
||||
import {
|
||||
compareDocumentPosition,
|
||||
@@ -10,9 +10,17 @@ import {
|
||||
removeSubsets
|
||||
} from 'domutils'
|
||||
|
||||
import { NodeType, ListParams, TableParams, GenericParams, TocParaSeqParams, TagsWithTextSpec, TagsSpec } from './types'
|
||||
import {
|
||||
NodeType,
|
||||
type ListParams,
|
||||
type TableParams,
|
||||
type GenericParams,
|
||||
type TocParaSeqParams,
|
||||
type TagsWithTextSpec,
|
||||
type TagsSpec
|
||||
} from './types'
|
||||
import { clean, compareStrExact } from '../helpers'
|
||||
import { Container, GenericContainer, ListContainer, TableContainer } from './container'
|
||||
import { type Container, GenericContainer, ListContainer, TableContainer } from './container'
|
||||
|
||||
// Copied from domutils ambient const enums to solve 'isolatedModules' is enabled
|
||||
const enum DocumentPosition {
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
import { Document } from 'domhandler'
|
||||
import { Markup } from '@hcengineering/core'
|
||||
import { type Document } from 'domhandler'
|
||||
import { type Markup } from '@hcengineering/core'
|
||||
|
||||
import { GenericNodeSpec, NodeType, SectionSpec, SectionType, TocSectionSpec } from './types'
|
||||
import { AnyContainer, createNodeExtractor } from './nodes'
|
||||
import { type GenericNodeSpec, NodeType, type SectionSpec, SectionType, type TocSectionSpec } from './types'
|
||||
import { type AnyContainer, createNodeExtractor } from './nodes'
|
||||
|
||||
/**
|
||||
* @public
|
||||
|
||||
Reference in New Issue
Block a user