fix: correct RelativeStrengthAB binding wrapper casing (#296)

The WASM and Node binding wrappers were named with the lowercase-b acronym
(WasmRelativeStrengthAb, RelativeStrengthAbNode) while the core type and every
other surface use RelativeStrengthAB. The published JS/WASM class name was
already correct via js_name/js_class, so this only aligns the internal Rust
identifiers and the auto-generated TypeScript type alias
(RelativeStrengthAbNode -> RelativeStrengthABNode). Runtime API unchanged.
This commit is contained in:
kingchenc
2026-06-14 00:50:03 +02:00
committed by GitHub
parent eb50ae4e90
commit d9e6807ca0
4 changed files with 15 additions and 6 deletions
+1 -1
View File
@@ -1645,7 +1645,7 @@ export declare class Cointegration {
isReady(): boolean
warmupPeriod(): number
}
export type RelativeStrengthAbNode = RelativeStrengthAB
export type RelativeStrengthABNode = RelativeStrengthAB
export declare class RelativeStrengthAB {
constructor(maPeriod: number, rsiPeriod: number)
update(a: number, b: number): RelativeStrengthValue | null
+2 -2
View File
@@ -1174,12 +1174,12 @@ pub struct RelativeStrengthValue {
}
#[napi(js_name = "RelativeStrengthAB")]
pub struct RelativeStrengthAbNode {
pub struct RelativeStrengthABNode {
inner: wc::RelativeStrengthAB,
}
#[napi]
impl RelativeStrengthAbNode {
impl RelativeStrengthABNode {
#[napi(constructor)]
pub fn new(ma_period: u32, rsi_period: u32) -> napi::Result<Self> {
Ok(Self {