Skip to content

Commit

Permalink
.js' => 'ts'
Browse files Browse the repository at this point in the history
  • Loading branch information
arietrouw committed Aug 2, 2024
1 parent 7dd84b5 commit d1a0dc4
Show file tree
Hide file tree
Showing 865 changed files with 1,482 additions and 2,017 deletions.
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { AddressPayload, AddressSchema } from '@xyo-network/module-model'
import { createPayloadPlugin } from '@xyo-network/payload-plugin'

import { addressPayloadTemplate } from './Template.js'
import { addressPayloadTemplate } from './Template.ts'

export const AddressPayloadPlugin = () =>
createPayloadPlugin<AddressPayload>({
Expand Down
4 changes: 2 additions & 2 deletions packages/core-payload-plugins/packages/address/src/index.ts
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
export { AddressPayloadPlugin, AddressPayloadPlugin as default } from './Plugin.js'
export * from './Template.js'
export { AddressPayloadPlugin, AddressPayloadPlugin as default } from './Plugin.ts'
export * from './Template.ts'
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { PayloadPluginResolver } from '@xyo-network/payload-plugin'

import { AddressPayloadPlugin } from '../Plugin.js'
import { AddressPayloadPlugin } from '../Plugin.ts'

describe('AddressPayloadPlugin', () => {
test('Add to Resolver', () => {
Expand Down
3 changes: 0 additions & 3 deletions packages/core-payload-plugins/packages/address/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,5 @@
{
"compilerOptions": {
"emitDecoratorMetadata": true,
"experimentalDecorators": true,

"typeRoots": []
},

Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { AnyObject, WithAdditional } from '@xylabs/object'
import { Payload } from '@xyo-network/payload-model'

import { ConfigSchema } from './Schema.js'
import { ConfigSchema } from './Schema.ts'

export type ConfigPayload<T extends AnyObject | undefined = undefined> = WithAdditional<
Payload<{
Expand Down
6 changes: 3 additions & 3 deletions packages/core-payload-plugins/packages/config/src/Plugin.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import { createPayloadPlugin } from '@xyo-network/payload-plugin'

import { ConfigPayload } from './Payload.js'
import { ConfigSchema } from './Schema.js'
import { configPayloadTemplate } from './Template.js'
import { ConfigPayload } from './Payload.ts'
import { ConfigSchema } from './Schema.ts'
import { configPayloadTemplate } from './Template.ts'

export const ConfigPayloadPlugin = () =>
createPayloadPlugin<ConfigPayload>({
Expand Down
4 changes: 2 additions & 2 deletions packages/core-payload-plugins/packages/config/src/Template.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { ConfigPayload } from './Payload.js'
import { ConfigSchema } from './Schema.js'
import { ConfigPayload } from './Payload.ts'
import { ConfigSchema } from './Schema.ts'

export const configPayloadTemplate = (): ConfigPayload => ({
config: '',
Expand Down
8 changes: 4 additions & 4 deletions packages/core-payload-plugins/packages/config/src/index.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
export * from './Payload.js'
export { ConfigPayloadPlugin, ConfigPayloadPlugin as default } from './Plugin.js'
export * from './Schema.js'
export * from './Template.js'
export * from './Payload.ts'
export { ConfigPayloadPlugin, ConfigPayloadPlugin as default } from './Plugin.ts'
export * from './Schema.ts'
export * from './Template.ts'
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { PayloadPluginResolver } from '@xyo-network/payload-plugin'

import { ConfigPayloadPlugin } from '../Plugin.js'
import { ConfigPayloadPlugin } from '../Plugin.ts'

describe('ConfigPayloadPlugin', () => {
test('Add to Resolver', () => {
Expand Down
3 changes: 0 additions & 3 deletions packages/core-payload-plugins/packages/config/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,5 @@
{
"compilerOptions": {
"emitDecoratorMetadata": true,
"experimentalDecorators": true,

"typeRoots": []
},

Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { NetworkPayload } from '@xyo-network/network'
import { Payload } from '@xyo-network/payload-model'

import { DomainSchema } from './Schema.js'
import { DomainSchema } from './Schema.ts'

export interface Alias {
/** @field huri to the aliased payload */
Expand Down
8 changes: 4 additions & 4 deletions packages/core-payload-plugins/packages/domain/src/Plugin.ts
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
import { Payload } from '@xyo-network/payload-model'
import { createPayloadPlugin } from '@xyo-network/payload-plugin'

import { DomainPayload } from './Payload.js'
import { DomainSchema } from './Schema.js'
import { domainConfigTemplate } from './Template.js'
import { DomainPayloadWrapper } from './Wrapper.js'
import { DomainPayload } from './Payload.ts'
import { DomainSchema } from './Schema.ts'
import { domainConfigTemplate } from './Template.ts'
import { DomainPayloadWrapper } from './Wrapper.ts'

export const DomainPayloadPlugin = () =>
createPayloadPlugin<DomainPayload>({
Expand Down
4 changes: 2 additions & 2 deletions packages/core-payload-plugins/packages/domain/src/Template.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { DomainPayload } from './Payload.js'
import { DomainSchema } from './Schema.js'
import { DomainPayload } from './Payload.ts'
import { DomainSchema } from './Schema.ts'

export const domainConfigTemplate = (): DomainPayload => ({
aliases: {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import { NetworkPayload } from '@xyo-network/network'
import { PayloadBuilder } from '@xyo-network/payload-builder'
import { PayloadWrapper } from '@xyo-network/payload-wrapper'

import { Alias, DomainPayload } from './Payload.js'
import { Alias, DomainPayload } from './Payload.ts'

export interface FetchedAlias extends FetchedPayload {
alias: Alias
Expand Down
10 changes: 5 additions & 5 deletions packages/core-payload-plugins/packages/domain/src/index.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
export * from './Payload.js'
export { DomainPayloadPlugin as default, DomainPayloadPlugin } from './Plugin.js'
export * from './Schema.js'
export * from './Template.js'
export * from './Wrapper.js'
export * from './Payload.ts'
export { DomainPayloadPlugin as default, DomainPayloadPlugin } from './Plugin.ts'
export * from './Schema.ts'
export * from './Template.ts'
export * from './Wrapper.ts'
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { PayloadPluginResolver } from '@xyo-network/payload-plugin'

import { DomainPayloadPlugin } from '../Plugin.js'
import { DomainPayloadPlugin } from '../Plugin.ts'

describe('DomainPayloadPlugin', () => {
test('Add to Resolver', () => {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { DomainSchema } from '../Schema.js'
import { DomainSchema } from '../Schema.ts'
import { DomainPayloadWrapper } from '../Wrapper'

describe('DomainPayloadWrapper', () => {
Expand Down
3 changes: 0 additions & 3 deletions packages/core-payload-plugins/packages/domain/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,5 @@
{
"compilerOptions": {
"emitDecoratorMetadata": true,
"experimentalDecorators": true,

"typeRoots": []
},

Expand Down
2 changes: 1 addition & 1 deletion packages/core-payload-plugins/packages/id/src/Payload.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import {
WithSources,
} from '@xyo-network/payload-model'

import { IdSchema } from './Schema.js'
import { IdSchema } from './Schema.ts'

/**
* The fields of an ID Payload
Expand Down
6 changes: 3 additions & 3 deletions packages/core-payload-plugins/packages/id/src/Plugin.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import { createPayloadPlugin } from '@xyo-network/payload-plugin'

import { IdPayload } from './Payload.js'
import { IdSchema } from './Schema.js'
import { idPayloadTemplate } from './Template.js'
import { IdPayload } from './Payload.ts'
import { IdSchema } from './Schema.ts'
import { idPayloadTemplate } from './Template.ts'

export const IdPayloadPlugin = () =>
createPayloadPlugin<IdPayload>({
Expand Down
4 changes: 2 additions & 2 deletions packages/core-payload-plugins/packages/id/src/Template.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { IdPayload } from './Payload.js'
import { IdSchema } from './Schema.js'
import { IdPayload } from './Payload.ts'
import { IdSchema } from './Schema.ts'

export const idPayloadTemplate = (): IdPayload => ({
salt: '',
Expand Down
8 changes: 4 additions & 4 deletions packages/core-payload-plugins/packages/id/src/index.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
export * from './Payload.js'
export { IdPayloadPlugin as default, IdPayloadPlugin } from './Plugin.js'
export * from './Schema.js'
export * from './Template.js'
export * from './Payload.ts'
export { IdPayloadPlugin as default, IdPayloadPlugin } from './Plugin.ts'
export * from './Schema.ts'
export * from './Template.ts'
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { PayloadPluginResolver } from '@xyo-network/payload-plugin'

import { IdPayloadPlugin } from '../Plugin.js'
import { IdPayloadPlugin } from '../Plugin.ts'

describe('IdPayloadPlugin', () => {
test('Add to Resolver', () => {
Expand Down
3 changes: 0 additions & 3 deletions packages/core-payload-plugins/packages/id/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,5 @@
{
"compilerOptions": {
"emitDecoratorMetadata": true,
"experimentalDecorators": true,

"typeRoots": []
},

Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { Payload } from '@xyo-network/payload-model'

import { QuerySchema } from './Schema.js'
import { QuerySchema } from './Schema.ts'

export type QueryPayload = Payload<{
query: string
Expand Down
6 changes: 3 additions & 3 deletions packages/core-payload-plugins/packages/query/src/Plugin.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import { createPayloadPlugin } from '@xyo-network/payload-plugin'

import { QueryPayload } from './Payload.js'
import { QuerySchema } from './Schema.js'
import { queryPayloadTemplate } from './Template.js'
import { QueryPayload } from './Payload.ts'
import { QuerySchema } from './Schema.ts'
import { queryPayloadTemplate } from './Template.ts'

export const QueryPayloadPlugin = () =>
createPayloadPlugin<QueryPayload>({
Expand Down
4 changes: 2 additions & 2 deletions packages/core-payload-plugins/packages/query/src/Template.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { QueryPayload } from './Payload.js'
import { QuerySchema } from './Schema.js'
import { QueryPayload } from './Payload.ts'
import { QuerySchema } from './Schema.ts'

export const queryPayloadTemplate = (): QueryPayload => ({
query: '',
Expand Down
8 changes: 4 additions & 4 deletions packages/core-payload-plugins/packages/query/src/index.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
export * from './Payload.js'
export { QueryPayloadPlugin as default, QueryPayloadPlugin } from './Plugin.js'
export * from './Schema.js'
export * from './Template.js'
export * from './Payload.ts'
export { QueryPayloadPlugin as default, QueryPayloadPlugin } from './Plugin.ts'
export * from './Schema.ts'
export * from './Template.ts'
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { PayloadPluginResolver } from '@xyo-network/payload-plugin'

import { QueryPayloadPlugin } from '../Plugin.js'
import { QueryPayloadPlugin } from '../Plugin.ts'

describe('QueryPayloadPlugin', () => {
test('Add to Resolver', () => {
Expand Down
3 changes: 0 additions & 3 deletions packages/core-payload-plugins/packages/query/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,5 @@
{
"compilerOptions": {
"emitDecoratorMetadata": true,
"experimentalDecorators": true,

"typeRoots": []
},

Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { Payload } from '@xyo-network/payload-model'

import { SchemaSchema } from './Schema.js'
import { SchemaSchema } from './Schema.ts'

export type SchemaPayload = Payload<{
definition: {
Expand Down
6 changes: 3 additions & 3 deletions packages/core-payload-plugins/packages/schema/src/Plugin.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import { createPayloadPlugin } from '@xyo-network/payload-plugin'

import { SchemaPayload } from './Payload.js'
import { SchemaSchema } from './Schema.js'
import { schemaPayloadTemplate } from './Template.js'
import { SchemaPayload } from './Payload.ts'
import { SchemaSchema } from './Schema.ts'
import { schemaPayloadTemplate } from './Template.ts'

export const SchemaPayloadPlugin = () =>
createPayloadPlugin<SchemaPayload>({
Expand Down
4 changes: 2 additions & 2 deletions packages/core-payload-plugins/packages/schema/src/Template.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { SchemaPayload } from './Payload.js'
import { SchemaSchema } from './Schema.js'
import { SchemaPayload } from './Payload.ts'
import { SchemaSchema } from './Schema.ts'
export const schemaPayloadTemplate = (): SchemaPayload => ({
definition: {
$id: '',
Expand Down
8 changes: 4 additions & 4 deletions packages/core-payload-plugins/packages/schema/src/index.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
export * from './Payload.js'
export { SchemaPayloadPlugin as default, SchemaPayloadPlugin } from './Plugin.js'
export * from './Schema.js'
export * from './Template.js'
export * from './Payload.ts'
export { SchemaPayloadPlugin as default, SchemaPayloadPlugin } from './Plugin.ts'
export * from './Schema.ts'
export * from './Template.ts'
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { PayloadPluginResolver } from '@xyo-network/payload-plugin'

import { SchemaPayloadPlugin } from '../Plugin.js'
import { SchemaPayloadPlugin } from '../Plugin.ts'

describe('SchemaPayloadPlugin', () => {
test('Add to Resolver', () => {
Expand Down
3 changes: 0 additions & 3 deletions packages/core-payload-plugins/packages/schema/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,5 @@
{
"compilerOptions": {
"emitDecoratorMetadata": true,
"experimentalDecorators": true,

"typeRoots": []
},

Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { JsonValue } from '@xylabs/object'
import { isPayloadOfSchemaType, isPayloadOfSchemaTypeWithMeta, Payload } from '@xyo-network/payload-model'

import { ValueSchema } from './Schema.js'
import { ValueSchema } from './Schema.ts'

export type Value<T extends JsonValue = JsonValue> = Payload<{
schema: ValueSchema
Expand Down
6 changes: 3 additions & 3 deletions packages/core-payload-plugins/packages/value/src/Plugin.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import { createPayloadPlugin } from '@xyo-network/payload-plugin'

import { Value } from './Payload.js'
import { ValueSchema } from './Schema.js'
import { valuePayloadTemplate } from './Template.js'
import { Value } from './Payload.ts'
import { ValueSchema } from './Schema.ts'
import { valuePayloadTemplate } from './Template.ts'

export const ValuePayloadPlugin = () =>
createPayloadPlugin<Value>({
Expand Down
4 changes: 2 additions & 2 deletions packages/core-payload-plugins/packages/value/src/Template.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { Value } from './Payload.js'
import { ValueSchema } from './Schema.js'
import { Value } from './Payload.ts'
import { ValueSchema } from './Schema.ts'

export const valuePayloadTemplate = (): Value => ({
schema: ValueSchema,
Expand Down
8 changes: 4 additions & 4 deletions packages/core-payload-plugins/packages/value/src/index.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
export * from './Payload.js'
export { ValuePayloadPlugin as default, ValuePayloadPlugin } from './Plugin.js'
export * from './Schema.js'
export * from './Template.js'
export * from './Payload.ts'
export { ValuePayloadPlugin as default, ValuePayloadPlugin } from './Plugin.ts'
export * from './Schema.ts'
export * from './Template.ts'
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { PayloadPluginResolver } from '@xyo-network/payload-plugin'

import { ValuePayloadPlugin } from '../Plugin.js'
import { ValuePayloadPlugin } from '../Plugin.ts'

describe('ValuePayloadPlugin', () => {
test('Add to Resolver', () => {
Expand Down
3 changes: 0 additions & 3 deletions packages/core-payload-plugins/packages/value/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,5 @@
{
"compilerOptions": {
"emitDecoratorMetadata": true,
"experimentalDecorators": true,

"typeRoots": []
},

Expand Down
3 changes: 0 additions & 3 deletions packages/core-payload-plugins/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,5 @@
{
"compilerOptions": {
"emitDecoratorMetadata": true,
"experimentalDecorators": true,

"typeRoots": []
},

Expand Down
2 changes: 1 addition & 1 deletion packages/manifest/packages/model/src/Payload.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ export const NodeManifestPayloadSchema: NodeManifestPayloadSchema = 'network.xyo

import { isPayloadOfSchemaType, Payload } from '@xyo-network/payload-model'

import { ModuleManifest, NodeManifest, PackageManifest } from './Manifest.js'
import { ModuleManifest, NodeManifest, PackageManifest } from './Manifest.ts'

export interface NodeManifestPayload extends NodeManifest {
schema: NodeManifestPayloadSchema
Expand Down
Loading

0 comments on commit d1a0dc4

Please sign in to comment.