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:
parent
1b3d1b48a1
commit
e0357065dc
|
@ -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[];
|
||||
|
||||
|
|
|
@ -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";
|
||||
|
|
Loading…
Reference in New Issue