MCPcopy
hub / github.com/Effect-TS/effect / PropertySignatureImpl

Class PropertySignatureImpl

packages/effect/src/Schema.ts:1887–1920  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1885}
1886
1887class PropertySignatureImpl<
1888 TypeToken extends PropertySignature.Token,
1889 Type,
1890 Key extends PropertyKey,
1891 EncodedToken extends PropertySignature.Token,
1892 Encoded,
1893 HasDefault extends boolean = false,
1894 R = never
1895> implements PropertySignature<TypeToken, Type, Key, EncodedToken, Encoded, HasDefault, R> {
1896 readonly [TypeId]!: Schema.Variance<Type, Encoded, R>[TypeId]
1897 readonly [PropertySignatureTypeId] = null
1898 readonly _TypeToken!: TypeToken
1899 readonly _Key!: Key
1900 readonly _EncodedToken!: EncodedToken
1901 readonly _HasDefault!: HasDefault
1902
1903 constructor(
1904 readonly ast: PropertySignature.AST
1905 ) {}
1906
1907 pipe() {
1908 return pipeArguments(this, arguments)
1909 }
1910
1911 annotations(
1912 annotations: PropertySignature.Annotations<Type>
1913 ): PropertySignature<TypeToken, Type, Key, EncodedToken, Encoded, HasDefault, R> {
1914 return new PropertySignatureImpl(mergeSignatureAnnotations(this.ast, toASTAnnotations(annotations)))
1915 }
1916
1917 toString() {
1918 return String(this.ast)
1919 }
1920}
1921
1922/**
1923 * @category PropertySignature

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected