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:
Vendored
+1
-1
@@ -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
|
||||
|
||||
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user