Skip to content

Commit 587de6c

Browse files
committed
correct node info discover class (issue #242)
1 parent f193c22 commit 587de6c

File tree

1 file changed

+9
-2
lines changed

1 file changed

+9
-2
lines changed

specification/nodes/info/types.ts

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,9 @@ import { Host, Ip, TransportAddress } from '@_types/Networking'
2525
import { integer, long } from '@_types/Numeric'
2626
import { PluginStats } from '@_types/Stats'
2727
import { NodeRoles } from '@_types/Node'
28+
import { Duration, DurationValue, EpochTime, UnitMillis } from '@_types/Time'
29+
import { UserDefinedValue } from '@spec_utils/UserDefinedValue'
30+
import { AdditionalProperties } from '@spec_utils/behaviors'
2831

2932
export class NodeInfo {
3033
attributes: Dictionary<string, string>
@@ -165,8 +168,12 @@ export class NodeInfoRepositoriesUrl {
165168
allowed_urls: string
166169
}
167170

168-
export class NodeInfoDiscover {
169-
seed_hosts?: string
171+
export class NodeInfoDiscover
172+
implements AdditionalProperties<string, UserDefinedValue>
173+
{
174+
seed_hosts?: string[]
175+
type?: string
176+
seed_providers?: string[]
170177
}
171178

172179
export class NodeInfoAction {

0 commit comments

Comments
 (0)