Skip to content

Commit

Permalink
doc comments to explain public vs private validators
Browse files Browse the repository at this point in the history
  • Loading branch information
jonesmac committed Sep 4, 2024
1 parent db39b84 commit 4a5cca5
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
/**
* NOTE: These validators are private because they rely on private data that cannot be shared with clients.
*/

import type { PayloadValidationFunction, WithSources } from '@xyo-network/payload-model'

import type { DomainRegistration } from '../../../DomainRegistration/index.ts'
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
/**
* NOTE: These validators are public because they can be validated by clients
* and require no special access to private data.
*/

import type { WithSources } from '@xyo-network/payload-model'

import type { DomainRegistration } from '../../../../DomainRegistration/index.ts'
Expand Down

0 comments on commit 4a5cca5

Please sign in to comment.