Closed jedwards1211 closed 12 months ago
This testcase demonstrates the issue
import { TransformOptions } from '../../src' import { astxTestcase } from '../astxTestcase' astxTestcase({ file: __filename, input: ` class Connection extends Model<ConnectionAttributes, ConnectionInitAttributes> { declare Channels: Array<ConnectionChannel>; static Channels: Association.HasMany< Connection, ConnectionChannelAttributes, ConnectionChannelInitAttributes, ConnectionChannel > = null } `, astx: ({ astx }: TransformOptions): void => { for (const { $$body, } of astx.find`class $C extends Model<$$A> { $$body }`()) { $$body.find`class X { /**/ static $a: Association.HasMany<$$p> = $Maybe($i)}`() // this replace has no effect .replace`class X { /**/ declare static $a: any; }`() } }, expected: ` class Connection extends Model<ConnectionAttributes, ConnectionInitAttributes> { declare Channels: Array<ConnectionChannel>; declare static Channels: any; } `, })
:tada: This issue has been resolved in version 3.0.0-beta.5 :tada:
The release is available on:
Your semantic-release bot :package::rocket:
This testcase demonstrates the issue