mirror of
https://gitee.com/openharmony/interface_sdk-js
synced 2024-11-23 07:10:52 +00:00
add decimal interface
Issue:I95TP7 Signed-off-by: liujia178 <liujia178@huawei.com>
This commit is contained in:
parent
3b9735669c
commit
ce4b57a2a9
1
BUILD.gn
1
BUILD.gn
@ -55,6 +55,7 @@ ohos_copy("bundle_arkts") {
|
||||
outputs = [ target_out_dir + "/$target_name" ]
|
||||
module_source_dir = target_out_dir + "/$target_name"
|
||||
module_install_name = ""
|
||||
license_file = "./LICENCE.md"
|
||||
}
|
||||
|
||||
ohos_copy_internal("ets_internal_api") {
|
||||
|
29
LICENCE.md
Normal file
29
LICENCE.md
Normal file
@ -0,0 +1,29 @@
|
||||
The API design of the arkts.math.Decimal module is based on the third-party software Decimal.js,
|
||||
which is licensed under the MIT License. To comply with open-source licensing,
|
||||
we acknowledge the MIT License terms and include this notice.
|
||||
|
||||
Please refer to the full LICENSE text for Decimal.js's licensing terms and conditions.
|
||||
|
||||
The MIT Licence.
|
||||
|
||||
Copyright (c) 2022 Michael Mclaughlin
|
||||
|
||||
Permission is hereby granted, free of charge, to any person obtaining
|
||||
a copy of this software and associated documentation files (the
|
||||
'Software'), to deal in the Software without restriction, including
|
||||
without limitation the rights to use, copy, modify, merge, publish,
|
||||
distribute, sublicense, and/or sell copies of the Software, and to
|
||||
permit persons to whom the Software is furnished to do so, subject to
|
||||
the following conditions:
|
||||
|
||||
The above copyright notice and this permission notice shall be
|
||||
included in all copies or substantial portions of the Software.
|
||||
|
||||
THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND,
|
||||
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
||||
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
|
||||
IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
|
||||
CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
|
||||
TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
|
||||
SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
||||
|
2062
arkts/@arkts.math.Decimal.d.ets
Normal file
2062
arkts/@arkts.math.Decimal.d.ets
Normal file
File diff suppressed because it is too large
Load Diff
3
kits/@kit.ArkTS.d.ts
vendored
3
kits/@kit.ArkTS.d.ts
vendored
@ -50,11 +50,12 @@ import lang from '@arkts.lang';
|
||||
import ArkTSUtils from '@arkts.utils';
|
||||
import collections from '@arkts.collections';
|
||||
import stream from '@ohos.util.stream';
|
||||
import Decimal from '@arkts.math.Decimal';
|
||||
|
||||
export {
|
||||
ArrayList, convertxml, DedicatedWorkerGlobalScope, Deque, ErrorEvent, Event, EventListener,
|
||||
EventTarget, HashMap, HashSet, LightWeightMap, LightWeightSet, LinkedList, List, MessageEvent,
|
||||
MessageEvents, PlainArray, PostMessageOptions, Queue, Stack, ThreadWorkerGlobalScope, TreeMap,
|
||||
TreeSet, Vector, WorkerEventListener, WorkerEventTarget, WorkerOptions, buffer, process, taskpool,
|
||||
uri, url, util, worker, xml, JSON, lang, ArkTSUtils, collections, stream
|
||||
uri, url, util, worker, xml, JSON, lang, ArkTSUtils, collections, stream, Decimal
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user