diff options
author | 2019-08-31 01:26:28 +0700 | |
---|---|---|
committer | 2019-08-31 01:26:28 +0700 | |
commit | 8d0393542bd712d7bb7f93874118dedd07b62c7b (patch) | |
tree | 0a139195466ba76bf5abdd6cbb979e55dcf3322a /source/libs/get-text-nodes.ts | |
parent | 0ca864af6da9cac9f503e4abd0c58b60fbe1abc6 (diff) | |
download | refined-github-8d0393542bd712d7bb7f93874118dedd07b62c7b.tar.gz refined-github-8d0393542bd712d7bb7f93874118dedd07b62c7b.tar.zst refined-github-8d0393542bd712d7bb7f93874118dedd07b62c7b.zip |
Update dependencies and lint (#2391)19.8.31
Diffstat (limited to 'source/libs/get-text-nodes.ts')
-rw-r--r-- | source/libs/get-text-nodes.ts | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/libs/get-text-nodes.ts b/source/libs/get-text-nodes.ts index 30bf9722..e8cee915 100644 --- a/source/libs/get-text-nodes.ts +++ b/source/libs/get-text-nodes.ts @@ -1,4 +1,4 @@ -export default (el: Node) => { +export default (el: Node): Text[] => { const walker = document.createTreeWalker(el, NodeFilter.SHOW_TEXT); const nodes: Text[] = []; let node: Text; |