Skip to content

Commit

Permalink
Limit imports from ./types to type where applicable
Browse files Browse the repository at this point in the history
  • Loading branch information
LoneRifle committed Jul 15, 2023
1 parent b77f993 commit 493e7bf
Show file tree
Hide file tree
Showing 7 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion src/c14n-canonicalization.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import {
import type {
CanonicalizationOrTransformationAlgorithm,
CanonicalizationOrTransformationAlgorithmProcessOptions,
NamespacePrefix,
Expand Down
2 changes: 1 addition & 1 deletion src/enveloped-signature.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import * as xpath from "xpath";

import {
import type {
CanonicalizationOrTransformationAlgorithm,
CanonicalizationOrTransformationAlgorithmProcessOptions,
CanonicalizationOrTransformAlgorithmType,
Expand Down
2 changes: 1 addition & 1 deletion src/exclusive-canonicalization.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import {
import type {
CanonicalizationOrTransformationAlgorithm,
CanonicalizationOrTransformationAlgorithmProcessOptions,
NamespacePrefix,
Expand Down
2 changes: 1 addition & 1 deletion src/hash-algorithms.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import * as crypto from "crypto";
import { HashAlgorithm } from "./types";
import type { HashAlgorithm } from "./types";

export class Sha1 implements HashAlgorithm {
getHash = function (xml) {
Expand Down
2 changes: 1 addition & 1 deletion src/signature-algorithms.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import * as crypto from "crypto";
import { SignatureAlgorithm, createOptionalCallbackFunction } from "./types";
import { type SignatureAlgorithm, createOptionalCallbackFunction } from "./types";

export class RsaSha1 implements SignatureAlgorithm {
getSignature = createOptionalCallbackFunction(
Expand Down
2 changes: 1 addition & 1 deletion src/signed-xml.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import {
import type {
CanonicalizationAlgorithmType,
CanonicalizationOrTransformationAlgorithm,
ComputeSignatureOptions,
Expand Down
2 changes: 1 addition & 1 deletion src/utils.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import * as xpath from "xpath";
import { NamespacePrefix } from "./types";
import type { NamespacePrefix } from "./types";

export function isArrayHasLength(array: unknown): array is unknown[] {
return Array.isArray(array) && array.length > 0;
Expand Down

0 comments on commit 493e7bf

Please sign in to comment.