Initiatives: use core/references' URL type (#1745)

The URL type used by Initiatives was added before reference detection was
fully fleshed out. Since we'll use this reference detection, we'll use
it's URL type as well.
This commit is contained in:
Robin van Boven 2020-04-14 12:28:54 +02:00 committed by GitHub
parent 1b3d1b48a1
commit e0357065dc
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 3 deletions

View File

@ -1,11 +1,10 @@
// @flow
import {type URL} from "../../core/references";
import {type NodeAddressT, NodeAddress} from "../../core/graph";
import {type NodeWeight} from "../../core/weights";
import {initiativeNodeType} from "./declaration";
export type URL = string;
// Composite ID, used as input for NodeAddressT.
export opaque type InitiativeId = string[];

View File

@ -3,6 +3,7 @@
import path from "path";
import fs from "fs-extra";
import globby from "globby";
import {type URL} from "../../core/references";
import {type NodeAddressT, NodeAddress} from "../../core/graph";
import {type Compatible, fromCompat, toCompat} from "../../util/compat";
import {compatReader} from "../../backend/compatIO";
@ -16,7 +17,6 @@ import {
type InitiativeWeight,
type InitiativeId,
type InitiativeRepository,
type URL,
createId,
addressFromId,
} from "./initiative";